Better Markdown Parser in PHP
Go to file
2014-01-30 13:32:35 -08:00
bin Add a standalone application in bin/ for CLI parsedown 2014-01-30 08:50:37 -08:00
tests some edge case tests for the code tag 2014-01-29 15:36:41 +01:00
.gitignore add .idea to .gitignore 2013-10-23 00:44:21 +03:00
.travis.yml add hhvm to PHP versions to test against 2013-12-28 14:57:25 +02:00
composer.json Change spaces to tabs 2014-01-30 13:32:20 -08:00
LICENSE.txt improve license 2013-07-24 01:38:38 +03:00
Parsedown.php Remove is_cli() from Parsedown.php we're not using it 2014-01-30 11:10:14 -08:00
phpunit.xml.dist improve indentation in phpunit.xml.dist 2013-07-22 00:01:48 +03:00
README.md Change documentation to reflect the new bin/parsedown 2014-01-30 13:32:35 -08:00

Parsedown

Better Markdown parser for PHP.


[ demo ] [ tests ]


Features

Installation

Include Parsedown.php or install the composer package.

Example

$text = 'Hello *Parsedown*!';

$result = Parsedown::instance()->parse($text);

echo $result; # prints: <p>Hello <em>Parsedown</em>!</p>

CLI Example

cd bin
./parsedown document.md > document.html