fix:继续修正目录跳转锚点样式不正确的问题。

This commit is contained in:
徐涛 2021-07-01 14:01:22 +08:00
parent f250b86cf5
commit 58cddb3501
3 changed files with 11 additions and 3 deletions

View File

@ -154,10 +154,10 @@ mathjax:
every_page: false
plantuml:
# Local or PlantUMLServer.
render: "Local"
render: "PlantUMLServer"
# the server,you can change your self-hosted sever for privacy
# server: "http://www.plantuml.com/plantuml"
server: "http://www.plantuml.com/plantuml"
# "inline": <svg>xxx<svg/>
# "inlineUrlEncode": <img src='data:image/svg+xml;>
# "inlineBase64": <img src='data:image/svg+xml;base64>
@ -166,7 +166,7 @@ plantuml:
link: "inline"
GraphvizDotFile: "/usr/local/bin/dot"
PlantJar: "/Users/midnite/Libs/plantuml/plantuml.jar"
# PlantJar: "/Users/midnite/Libs/plantuml/plantuml.jar"
# common options: svg/png
outputFormat: "svg"

View File

@ -0,0 +1,6 @@
hexo.extend.filter.register("marked:renderer", function(renderer) {
const { config } = this;
renderer.heading = function(text, level) {
return `<h${level} id="${text}">${text}</h${level}>`;
};
});

View File

@ -154,7 +154,9 @@ article {
}
h2, h3, h4, h5, h6 {
&[id]:target {
position: relative;
padding-top: 92px;
margin-top: -72px;
}
}
}