From 36a7eceb897ff3201cb28fcfb3b2f8802a7188b5 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Tue, 5 May 2020 23:41:35 -0400 Subject: [PATCH] Remove preemptive autolinker from Text\Markdown::toBBCode - Autolinker is done centrally in Text\BBCode::convert --- 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 f5ad85e805..71437fb350 100644 --- a/src/Content/Text/Markdown.php +++ b/src/Content/Text/Markdown.php @@ -122,9 +122,6 @@ class Markdown // protect the recycle symbol from turning into a tag, but without unescaping angles and naked ampersands $s = str_replace('♲', html_entity_decode('♲', ENT_QUOTES, 'UTF-8'), $s); - // Convert everything that looks like a link to a link - $s = preg_replace('/([^\]=]|^)(https?\:\/\/)([a-zA-Z0-9:\/\-?&;.=_~#%$!+,@]+(?