commonmark 是基于 commonmark 规范的 php markdown 解析器。
主要特性:
完全支持 commonmark 规范 (100% compliance)
匹配 c 和 javascript 版本的 commonmark
持续改进性能
提供扩展解析器和渲染器
基本使用:
use league\commonmark\commonmarkconverter;$converter = new commonmarkconverter();echo $converter->converttohtml('# hello world!');// hello world!
项目主页:http://www.open-open.com/lib/view/home/1439898506801