Markdown: Avoid problems with [*] BBCode element #1463

Merged
MrPetovan merged 1 commit from heluecht/friendica-addons:bbcode-list into develop 2024-02-11 04:17:30 +01:00

View file

@ -64,6 +64,7 @@ function markdown_post_local_start(&$request) {
// (right chevrons are used for quoting in Markdown) // (right chevrons are used for quoting in Markdown)
// See https://github.com/friendica/friendica/issues/10634 // See https://github.com/friendica/friendica/issues/10634
$text = strtr($text, ['<' => '&lt;']); $text = strtr($text, ['<' => '&lt;']);
$text = str_replace('[*]', '[li]', $text);
return Markdown::toBBCode($text); return Markdown::toBBCode($text);
}); });