69

0

Parsedown

PHP 中更好的 Markdown 解析器

Installation

composer require erusev/parsedown

例子

$Parsedown = new Parsedown();

echo $Parsedown->text('Hello Parsedown!'); # prints: <p>Hello <em>Parsedown</em>!</p>

You can also parse inline markdown only:

echo $Parsedown->line('Hello _Parsedown_!'); # prints: Hello <em>Parsedown</em>!