From 443894d488763cba556ffa9ffbeb205cf1fb239a Mon Sep 17 00:00:00 2001 From: spirit Date: Sun, 15 Dec 2019 22:33:54 +0800 Subject: [PATCH] fix BBCode image --- functions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions.php b/functions.php index 2bc548b..94b9956 100644 --- a/functions.php +++ b/functions.php @@ -1687,7 +1687,7 @@ function markdown_parser($incoming_comment) { $comment_markdown_content = $incoming_comment['comment_content']; include 'inc/Parsedown.php'; $Parsedown = new Parsedown(); - $incoming_comment['comment_content'] = $Parsedown->text($incoming_comment['comment_content']); + $incoming_comment['comment_content'] = $Parsedown->setUrlsLinked(false)->text($incoming_comment['comment_content']); return $incoming_comment; } add_filter('preprocess_comment' , 'markdown_parser');