Skip to content
Emanuil Rusev edited this page Jan 1, 2014 · 20 revisions

Basic usage:

$text = 'Hello **Parsedown**!';

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

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

Old-school:

$Parsedown = new Parsedown();

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

Options:

$result = Parsedown::instance()
   ->set_breaks_enabled(true) # enables automatic line breaks.
   ->parse($text);
Clone this wiki locally