From 84fc5ba9220f393d75ad0cb110260e458082ae0b Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 10 Feb 2024 12:00:36 +0000 Subject: [PATCH] Markdown: Avoid problems with [*] BBCode element --- markdown/markdown.php | 1 + 1 file changed, 1 insertion(+) 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); });