1
0
Fork 0

Enable hard_wrap for Markdown parser to match Diaspora parsing

This commit is contained in:
Hypolite Petovan 2017-03-23 21:23:00 -04:00
parent c9214c2051
commit 839a457ab2

View file

@ -15,7 +15,9 @@ function Markdown($text) {
$stamp1 = microtime(true); $stamp1 = microtime(true);
# Read file and pass content through the Markdown parser # Read file and pass content through the Markdown parser
$html = MarkdownExtra::defaultTransform($text); $MarkdownParser = new MarkdownExtra();
$MarkdownParser->hard_wrap = true;
$html = $MarkdownParser->transform($text);
$a->save_timestamp($stamp1, "parser"); $a->save_timestamp($stamp1, "parser");