]> git.mxchange.org Git - friendica.git/commitdiff
Remove asterisk provision altogether in Markdown::toBBCode
authorHypolite Petovan <hypolite@mrpetovan.com>
Tue, 5 Feb 2019 02:49:55 +0000 (21:49 -0500)
committerHypolite Petovan <hypolite@mrpetovan.com>
Tue, 5 Feb 2019 02:50:27 +0000 (21:50 -0500)
src/Content/Text/Markdown.php

index 977ecd304f2728a8bba6bce1b2f3725a746d5375..ceb5b043b3065ba045c27891fc0138df916afd31 100644 (file)
@@ -83,9 +83,6 @@ class Markdown extends BaseObject
        {
                $s = html_entity_decode($s, ENT_COMPAT, 'UTF-8');
 
-               // Replace lonely stars in lines not starting with it with literal stars
-               $s = preg_replace('/^([^\*]+)\*([^\*]*)$/im', '$1\*$2', $s);
-
                // The parser cannot handle paragraphs correctly
                $s = str_replace(['</p>', '<p>', '<p dir="ltr">'], ['<br>', '<br>', '<br>'], $s);