mirror of
https://github.com/friendica/friendica
synced 2024-12-23 13:20:21 +00:00
Fixing problems with single linefeeds in the Markdown conversion.
This commit is contained in:
parent
3f1d186106
commit
579ac83547
1 changed files with 2 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue