From: Michael Date: Sat, 10 Feb 2024 12:00:36 +0000 (+0000) Subject: Markdown: Avoid problems with [*] BBCode element X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=84fc5ba9220f393d75ad0cb110260e458082ae0b;p=friendica-addons.git Markdown: Avoid problems with [*] BBCode element --- diff --git a/markdown/markdown.php b/markdown/markdown.php index 236fb297..6f459244 100644 --- a/markdown/markdown.php +++ b/markdown/markdown.php @@ -64,6 +64,7 @@ function markdown_post_local_start(&$request) { // (right chevrons are used for quoting in Markdown) // See https://github.com/friendica/friendica/issues/10634 $text = strtr($text, ['<' => '<']); + $text = str_replace('[*]', '[li]', $text); return Markdown::toBBCode($text); });