From 5d67235be0a52e5f4e51b861c1f734868c7d3c3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B5=AA=E5=AD=90?= Date: Fri, 1 Aug 2025 10:58:21 +0800 Subject: [PATCH] 1.2.2 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 先解析短代码再解析markdown --- functions.php | 7 ++++--- index.php | 2 +- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/functions.php b/functions.php index a14498e..2239629 100644 --- a/functions.php +++ b/functions.php @@ -1037,9 +1037,6 @@ class ContentFilter $content ); - // 再进行 Markdown 解析 - $content = empty($lastResult) ? $widget->markdown($content) : $lastResult; - // alert类短代码批量替换 $alertShortcodes = [ 'success' => 'success', @@ -1138,6 +1135,10 @@ class ContentFilter }, $content ); + + // 再进行 Markdown 解析 + $content = empty($lastResult) ? $widget->markdown($content) : $lastResult; + return $content; } // 解析短代码属性 diff --git a/index.php b/index.php index 243d931..4e27721 100644 --- a/index.php +++ b/index.php @@ -4,7 +4,7 @@ * * @package Typecho Pouck Theme * @author 老孙博客 - * @version 1.2.1 + * @version 1.2.2 * @link http://www.imsun.org */