Markdown: Avoid problems with [*] BBCode element
authorMichael <heluecht@pirati.ca>
Sat, 10 Feb 2024 12:00:36 +0000 (12:00 +0000)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sun, 11 Feb 2024 03:17:28 +0000 (04:17 +0100)
markdown/markdown.php

index 236fb29..6f45924 100644 (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);
                        });