mirror of
https://github.com/jkjoy/Typecho-Theme-Puock.git
synced 2026-06-17 09:54:15 +00:00
1.2.2
先解析短代码再解析markdown
This commit is contained in:
+4
-3
@@ -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;
|
||||
}
|
||||
// 解析短代码属性
|
||||
|
||||
Reference in New Issue
Block a user