Slimdown - A simple regex-based Markdown parser.

Sign up for a GitHub account Sign in Discover Gists public jbroadway / Slimdown.md Last active 2014-01-11 Slimdown - A simple regex-based Markdown parser. Gist Detail Revisions 7 Stars 30 Forks 5 Download Gist Clone this gist Embed this gist Link to this gist Slimdown.md Markdown File suppressed. Click to show. A very basic regex-based Markdown parser. Supports the following elements (and can be extended via Slimdown::add_rule() ): Headers Links Bold Emphasis Deletions Quotes Inline code Blockquotes Ordered/unordered lists Here is the general use case: <?php require_once ( 'Slimdown.php' ); echo Slimdown :: render ( "# Page title \n\n And **now** for something _completely_ different." ); ?> A simple rule to convert :) to an image: <?php require_once ( 'Slimdown.php' ); Sli...

Linked on 2014-04-06 00:57:14 | Similar Links