Go to file
Emanuil Rusev 21db821324 improve readme 2014-05-16 01:15:21 +03:00
test resolve #105 2014-05-14 13:14:49 +03:00
.travis.yml remove composer dependency 2014-04-26 01:09:28 +03:00
LICENSE.txt improve license 2013-07-24 01:38:38 +03:00
Parsedown.php resolve #105 2014-05-14 13:14:49 +03:00
README.md improve readme 2014-05-16 01:15:21 +03:00
composer.json remove the extra trailing comma from composer.json 2013-07-11 00:33:44 +03:00
phpunit.xml.dist simplify folder name 2014-04-28 21:53:34 +03:00

README.md

Parsedown

Better Markdown parser for PHP.

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>

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. Since Parsedown is a single class with an uncommon name, making this trade wouldn't make much sense.

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