Browse Source

Fixing problems with single linefeeds in the Markdown conversion.

pull/1419/head
Michael Vogel 6 years ago
parent
commit
579ac83547
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      include/bb2diaspora.php

+ 2
- 0
include/bb2diaspora.php 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);


Loading…
Cancel
Save