adjmpwgt / parsedown-extra-plus
Configurable Markdown to HTML converter with Parsedown Extra.
Installs: 82
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/adjmpwgt/parsedown-extra-plus
Requires
- php: >=5.6
- erusev/parsedown-extra: ~0.8.0
This package is auto-updated.
Last update: 2025-10-21 17:09:28 UTC
README
Configurable Markdown to HTML converter with Parsedown Extra.
Installation
Install the [composer package]:
composer require adjmpwgt/parsedown-extra-plus ^0.0.0-beta-2
Or include ParsedownExtraPlus.php just after the Parsedown.php and ParsedownExtra.php
use Parsedown; use ParsedownExtra; use ParsedownExtraPlus; $parser = new ParsedownExtraPlus(); $text = <<<EOD ```php echo $Parsedown->text('Hello _Parsedown_!'); ``` EOD; echo $parser->text($text);
<pre class="prettyprint"><code class="language-php"> echo $Parsedown->text('Hello _Parsedown_!'); </code></pre>
pre.prettyprint is a syntax highlighting class for Google CodePrettify.
The following script is required for syntax highlighting
</script><script src="//cdn.jsdelivr.net/gh/google/code-prettify@master/loader/run_prettify.js"></script>
```mermaid
graph LR
A[Square Rect] -- Link text --> B((Circle))
A --> C(Round Rect)
B --> D{Rhombus}
C --> D
```
<pre><code class="mermaid"> graph LR A[Square Rect] -- Link text --> B((Circle)) A --> C(Round Rect) B --> D{Rhombus} C --> D </code></pre>
To deploy mermaid without a bundler, one can insert a script tag with an absolute address and a mermaidAPI call into the HTML like so:
<script src="https://cdn.jsdelivr.net/npm/mermaid/dist/mermaid.min.js"></script> <script>mermaid.initialize({startOnLoad:true});</script>