Browse Source

Enable hard_wrap for Markdown parser to match Diaspora parsing

pull/3258/head
Hypolite Petovan 5 years ago
parent
commit
839a457ab2
  1. 4
      library/markdown.php

4
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");

Loading…
Cancel
Save