From 839a457ab2390284da167d4289d44a24ff7f7cd8 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Thu, 23 Mar 2017 21:23:00 -0400 Subject: [PATCH] Enable hard_wrap for Markdown parser to match Diaspora parsing --- library/markdown.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/markdown.php b/library/markdown.php index a8152c2ab..e0b65ba0a 100644 --- a/library/markdown.php +++ b/library/markdown.php @@ -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");