Skip to content

Commit 992124b

Browse files
committed
fix: broken header plugin
1 parent 1f95b22 commit 992124b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.vitepress/headerMdPlugin.ts

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ export interface AugmentedHeader extends Header {
1919
}
2020

2121
export const headerPlugin = (md: MarkdownIt) => {
22+
md.core.ruler.enable('text_join')
23+
2224
md.renderer.rules.heading_open = (tokens, i, options, env, self) => {
2325
for (const child of tokens[i + 1].children!) {
2426
if (child.type === 'text' && child.content.endsWith('*')) {

0 commit comments

Comments
 (0)