略微调整
This commit is contained in:
浪子
2024-07-30 09:55:40 +08:00
parent eecbdb7a10
commit 31838bf189
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -145,6 +145,6 @@ function addHeaderLinks($text)
$level = $matches[1];
$title = $matches[2];
$id = htmlspecialchars(strip_tags($title), ENT_QUOTES, 'UTF-8');
return sprintf('<h%s id="%s"><a href="#%s" class="headerlink" title="%s">%s</a></h%s>', $level, $id, $id, $title, $title, $level);
return sprintf('<h%s id="%s"><a href="#%s" class="headerlink" title="%s"></a>%s</h%s>', $level, $id, $id, $title, $title, $level);
}, $text);
}