<?php

$data = <<<DATA
>A blockquote 
>on multiple lines 
>like this. 
DATA;
$md = new Sundown\Markdown(new Sundown\Render\Html());
$result = $md->render($data);
$tidy = new tidy();
$tidy->parseString($result, array("show-body-only" => 1));
$tidy->cleanRepair();
echo (string) $tidy;
Example #2
0
<?php

$md = new Sundown\Markdown(Sundown\Render\HTML, array());
echo $md->render(file_get_contents($_SERVER['argv'][1]));
Example #3
0
 public function parse($markdown)
 {
     $sd = new \Sundown\Markdown($this, ['autolink' => true, 'space_after_headers' => true, 'fenced_code_blocks' => true, 'tables' => true]);
     return $sd->render($markdown);
 }