1
1
Fork 0

markdown export for libertree now handles horizontal tulers correct.

This commit is contained in:
Michael Vogel 2014-06-23 01:25:58 +02:00
parent 5ed5773f57
commit 14bacc1e8c

View file

@ -78,7 +78,7 @@ 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 />", "\n<hr />", $Text);
$Text = str_replace("<hr />", "<br /><hr />", $Text);
}
// Now convert HTML to Markdown