]> git.mxchange.org Git - friendica-addons.git/commitdiff
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 236fb297fcc4985fdc0efb228e532e714e951264..6f4592445a37e3accb2534cf3ae2134f17a72f25 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);
                        });