From a96e9f248eca1576c99681ff22cd861ff8a7c814 Mon Sep 17 00:00:00 2001
From: Hypolite Petovan
Date: Mon, 4 Feb 2019 21:49:55 -0500
Subject: [PATCH] Remove asterisk provision altogether in Markdown::toBBCode
---
src/Content/Text/Markdown.php | 3 ---
1 file changed, 3 deletions(-)
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);
--
2.39.5