feat: automatically convert h1 to h2
This commit is contained in:
parent
d8dcf1b8ea
commit
8ea934f5f8
|
|
@ -215,6 +215,12 @@ export const renderPageContent = (
|
|||
}
|
||||
},
|
||||
})
|
||||
.use(rehypeRewrite, {
|
||||
selector: "h1",
|
||||
rewrite: (node: any) => {
|
||||
node.tagName = "h2"
|
||||
},
|
||||
})
|
||||
.use(rehypePrism, {
|
||||
ignoreMissing: true,
|
||||
showLineNumbers: true,
|
||||
|
|
|
|||
Loading…
Reference in New Issue