diff --git a/Code/Lib/Share.php b/Code/Lib/Share.php index bf0d44439..dfb1ec0fa 100644 --- a/Code/Lib/Share.php +++ b/Code/Lib/Share.php @@ -252,7 +252,7 @@ class Share $bb .= "\n\n" . '[map=' . $this->item['lat'] . ',' . $this->item['lon'] . ']' . "\n"; } - $bb .= "[/share]"; + $bb .= "\n[/share]"; } return $bb; diff --git a/Code/Module/Oep.php b/Code/Module/Oep.php index dcbbcabc6..aa6935e1f 100644 --- a/Code/Module/Oep.php +++ b/Code/Module/Oep.php @@ -144,7 +144,7 @@ class Oep extends Controller } $o .= $x; - $o .= "[/share]"; + $o .= "\n[/share]"; $o = bbcode($o); $o = str_replace($x, bbcode($p[0]['body']), $o); @@ -235,7 +235,7 @@ class Oep extends Controller } $o .= $x; - $o .= "[/share]"; + $o .= "\n[/share]"; $o = bbcode($o); $o = str_replace($x, bbcode($p[0]['body']), $o); @@ -325,7 +325,7 @@ class Oep extends Controller } $o .= $x; - $o .= "[/share]"; + $o .= "\n[/share]"; $o = bbcode($o); $o = str_replace($x, bbcode($p[0]['body']), $o); @@ -407,7 +407,7 @@ class Oep extends Controller $o .= '[b]' . $p[0]['title'] . '[/b]' . "\r\n"; } $o .= $x; - $o .= "[/share]"; + $o .= "\n[/share]"; $o = bbcode($o); $o = str_replace($x, bbcode($p[0]['body']), $o); diff --git a/include/bbcode.php b/include/bbcode.php index fd2d2d1d3..7f34b3feb 100644 --- a/include/bbcode.php +++ b/include/bbcode.php @@ -1308,7 +1308,6 @@ function md_header($content) function md_codeblock($content) { - $language = !empty($content[3]) ? filter_var($content[3], FILTER_SANITIZE_STRING) : ''; $class = !empty($language) ? sprintf(' class="%s language-%s"', $language, $language) : ''; // Build one block so that we not render each paragraph separately. @@ -1319,7 +1318,6 @@ function md_codeblock($content) function md_italic($content) { - return '' . $content[1] . $content[3] . ''; } diff --git a/include/items.php b/include/items.php index 62b5d937f..da9311eb7 100644 --- a/include/items.php +++ b/include/items.php @@ -2991,7 +2991,7 @@ function start_delivery_chain($channel, $item, $item_id, bool|array $parent, $gr $arr['title'] = $item['title']; } $bb .= $item['body']; - $bb .= "[/share]"; + $bb .= "\n[/share]"; $arr['body'] = $bb;