X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FContent%2FText%2FMarkdown.php;h=33e023bc03662b9f55bbec4913a12b6506d6463a;hb=2f7e22c4f754cd43a9de1ec2799544da0d7c9411;hp=3575c69a8b23ac93c6abf3473b5a2657998a71d7;hpb=afac91fa34c7b6558f730e47f3200e3208690f5b;p=friendica.git diff --git a/src/Content/Text/Markdown.php b/src/Content/Text/Markdown.php index 3575c69a8b..33e023bc03 100644 --- a/src/Content/Text/Markdown.php +++ b/src/Content/Text/Markdown.php @@ -1,6 +1,6 @@ System::callstack()]); + return ''; + } + + if (!$s) { + return $s; + } + DI::profiler()->startRecording('rendering'); // The parser cannot handle paragraphs correctly @@ -133,9 +145,6 @@ class Markdown // remove duplicate adjacent code tags $s = preg_replace('/(\[code\])+(.*?)(\[\/code\])+/ism', '[code]$2[/code]', $s); - // Don't show link to full picture (until it is fixed) - $s = BBCode::scaleExternalImages($s); - DI::profiler()->stopRecording(); return $s; }