Browse Source

When converting bbcode for Libertree then an empty line has to be before a honrizontal ruler.

pull/1245/head
Michael Vogel 6 years ago
parent
commit
3d26e1d233
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      include/bb2diaspora.php

+ 2
- 1
include/bb2diaspora.php View File

@ -90,8 +90,9 @@ function bb2diaspora($Text,$preserve_nl = false, $fordiaspora = true) {
} else {
$Text = bbcode($Text, $preserve_nl, false, 4);
// Libertree doesn't convert a harizontal rule if there isn't a linefeed
$Text = str_replace("<hr />", "<br /><hr />", $Text);
$Text = str_replace(array("<hr />", "<hr>"), array("<br /><hr />", "<br><hr>"), $Text);
}
// Now convert HTML to Markdown


Loading…
Cancel
Save