From: Hypolite Petovan
Date: Tue, 5 Feb 2019 02:49:55 +0000 (-0500)
Subject: Remove asterisk provision altogether in Markdown::toBBCode
X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=a96e9f248eca1576c99681ff22cd861ff8a7c814;p=friendica.git
Remove asterisk provision altogether in Markdown::toBBCode
---
diff --git a/src/Content/Text/Markdown.php b/src/Content/Text/Markdown.php
index 977ecd304f..ceb5b043b3 100644
--- a/src/Content/Text/Markdown.php
+++ b/src/Content/Text/Markdown.php
@@ -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(['
', '', '
'], ['
', '
', '
'], $s);