adjmpwgt/parsedown-extra-plus
Composer 安装命令:
composer require adjmpwgt/parsedown-extra-plus
包简介
Configurable Markdown to HTML converter with Parsedown Extra.
README 文档
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>
统计信息
- 总下载量: 87
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2020-10-13