Skip to content

Commit

Permalink
feat(rehype): add rehype-shift-heading plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mateusfg7 committed Dec 16, 2022
1 parent 7d960a7 commit 9392545
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion contentlayer.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import rehypeSlug from 'rehype-slug'
import rehypeToc from 'rehype-toc'
import rehypeKatex from 'rehype-katex'
import rehypeAutolinkHeadings from 'rehype-autolink-headings'
import rehypeShiftHeading from 'rehype-shift-heading'

import { makeSource } from 'contentlayer/source-files'

Expand All @@ -28,7 +29,8 @@ export default makeSource({
{
behavior: 'wrap'
}
]
],
[rehypeShiftHeading, { shift: 1 }]
]
}
})

0 comments on commit 9392545

Please sign in to comment.