Skip to content

Commit

Permalink
修复文章目录在html模式下跳转异常的问题
Browse files Browse the repository at this point in the history
Signed-off-by: friend-nicen <1747111677@qq.com>
  • Loading branch information
friend-nicen authored and gitee-org committed Apr 8, 2024
1 parent 696a5bc commit a3f341f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/themes/initialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ function nicen_theme_fit_html_cat_mode( $content ) {
/* 如果显示文章目录 */
if ( nicen_theme_showCatelog() ) {

$header = [ 0, 0, 0 ]; //标题数量
$header = [ 1, 1, 1 ]; //标题数量

/* 正则 */
$h = "/\<h2[\s\S]*?\<\/h2\>|\<h3[\s\S]*?\<\/h3\>|\<h4[\s\S]*?\<\/h4\>/"; //匹配h1标题的正则
Expand Down

0 comments on commit a3f341f

Please sign in to comment.