From: Hypolite Petovan Date: Wed, 6 May 2020 03:41:35 +0000 (-0400) Subject: Remove preemptive autolinker from Text\Markdown::toBBCode X-Git-Url: https://git.mxchange.org/?a=commitdiff_plain;h=36a7eceb897ff3201cb28fcfb3b2f8802a7188b5;p=friendica.git Remove preemptive autolinker from Text\Markdown::toBBCode - Autolinker is done centrally in Text\BBCode::convert --- 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:\/\-?&;.=_~#%$!+,@]+(?