Go to file
Emanuil Rusev e46be110fb Merge branch 'master' into commonmark 2014-11-29 16:42:04 +02:00
test Merge branch 'master' into commonmark 2014-11-29 16:42:04 +02:00
.travis.yml Add Standard Markdown testsuite. 2014-09-05 23:12:33 +03:00
LICENSE.txt improve license 2013-07-24 01:38:38 +03:00
Parsedown.php Merge branch 'master' into commonmark 2014-11-29 16:42:04 +02:00
README.md Merge branch 'master' into commonmark 2014-11-29 16:42:04 +02:00
composer.json remove the extra trailing comma from composer.json 2013-07-11 00:33:44 +03:00
phpunit.xml.dist Merge branch 'master' into commonmark 2014-11-29 16:42:04 +02:00

README.md

Parsedown

Better Markdown Parser in PHP

[ demo ]

Features

Installation

Include Parsedown.php or install the composer package.

Example

$Parsedown = new Parsedown();

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

More examples in the wiki and in this video tutorial.

Questions

How does Parsedown work?
Parsedown recognises that the Markdown syntax is optimised for humans so it tries to read like one. It goes through text line by line. It looks at how lines start to identify blocks. It looks for special characters to identify inline elements.

Why doesnt Parsedown use namespaces?
Using namespaces would mean dropping support for PHP 5.2. We believe that since Parsedown is a single class with an uncommon name, making this trade wouldn't be worth it.

Is Parsedown compliant with CommonMark?
We are working on it.

Who uses Parsedown?
phpDocumentor, October CMS, Bolt CMS, RaspberryPi.org and more.