Fixing problems with single linefeeds in the Markdown conversion.

This commit is contained in:
Michael Vogel 2015-03-01 21:22:06 +01:00
parent 3f1d186106
commit 579ac83547
1 changed files with 2 additions and 0 deletions

View File

@ -20,6 +20,8 @@ function diaspora2bb($s) {
// Remove CR to avoid problems with following code
//$s = str_replace("\r","",$s);
$s = str_replace("\n"," \n",$s);
// The parser cannot handle paragraphs correctly
$s = str_replace(array("</p>", "<p>", '<p dir="ltr">'),array("<br>", "<br>", "<br>"),$s);