fix: toc href not match id (#575)

This commit is contained in:
Birdgg
2023-05-23 13:13:44 +01:00
committed by GitHub
parent 325a605dc2
commit af932ee8dd
+3 -3
View File
@@ -124,9 +124,6 @@ export const renderPageContent = (
}
}
})
.use(() => (tree) => {
env.toc = toc(tree, { tight: true, ordered: true })
})
.use(remarkGfm, {
singleTilde: false,
})
@@ -139,6 +136,9 @@ export const renderPageContent = (
singleDollarTextMath: false,
})
.use(remarkPangu)
.use(() => (tree) => {
env.toc = toc(tree, { tight: true, ordered: true })
})
.use(remarkRehype, { allowDangerousHtml: true })
.use(emoji)