1
0
mirror of https://github.com/erusev/parsedown.git synced 2023-08-10 21:13:06 +03:00
parsedown/README.md
2014-05-16 03:34:43 +03:00

1.5 KiB
Raw Blame History

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.