]> git.mxchange.org Git - friendica.git/commitdiff
Enable hard_wrap for Markdown parser to match Diaspora parsing
authorHypolite Petovan <mrpetovan@gmail.com>
Fri, 24 Mar 2017 01:23:00 +0000 (21:23 -0400)
committerHypolite Petovan <mrpetovan@gmail.com>
Fri, 24 Mar 2017 01:23:00 +0000 (21:23 -0400)
library/markdown.php

index a8152c2ab61929b8e6b75fb45adf14ee0839991b..e0b65ba0aa9847a28cff092249ac7bd31d90e495 100644 (file)
@@ -15,7 +15,9 @@ function Markdown($text) {
        $stamp1 = microtime(true);
 
        # 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");