简体   繁体   中英

GitHub Flavored Markdown Parser in PHP

I'm making a component on my application designed to bring Markdown documentation to me as a developer (bundles docs) and user's help. I use syntax-highligter. That works perfectly, but usually bundles contains a fenced code using tilde character (~~~). The markdown files rendered by github markdown parser use ``` php [code] ``` . I suppose that "php" tells to SH what style should use. I don't like waste time reinventing the wheel. Does somebody know whether GitHub use a markdown parser ( GitHub Flavored Markdown ) available to community. If it's, where I can get it? I saw php-markdown but repeating myself, I need the GFM parser. Thanks in advance.

Have a look at Parsedown . It supports GFM and it is quite easy to use.

Checkout Ciconia ,它是新的和PHP 5.4 - 但它可能会帮助你

如果你需要PHP <5.4的东西,你可以看看PHP Markdown Extra Extended

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM