Markdown: Avoid problems with [*] BBCode element

pull/1465/head
Michael 2024-02-10 12:00:36 +00:00 committed by Hypolite Petovan
parent d5c7a49db2
commit 84fc5ba922
1 changed files with 1 additions and 0 deletions

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);
});