1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/kanboard_ynh.git synced 2024-09-03 19:36:17 +02:00
kanboard_ynh/sources/vendor/erusev/parsedown
2014-12-22 19:15:38 +01:00
..
test Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
.travis.yml Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
composer.json Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
LICENSE.txt Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
Parsedown.php Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
phpunit.xml.dist Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00
README.md Update kanboard v1.0.10 2014-12-22 19:15:38 +01:00

Parsedown

Better Markdown parser for 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.