Markdown: Avoid problems with [*] BBCode element

This commit is contained in:
Michael 2024-02-10 12:00:36 +00:00
parent 2452b05cc5
commit ed5456be2b

View file

@ -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, ['<' => '&lt;']);
$text = str_replace('[*]', '[li]', $text);
return Markdown::toBBCode($text);
});