From 9392545d6a403426f59e23c83f5f757c5e145919 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateus=20Felipe=20Gon=C3=A7alves?= Date: Fri, 16 Dec 2022 17:30:30 -0300 Subject: [PATCH] feat(rehype): add rehype-shift-heading plugin --- contentlayer.config.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/contentlayer.config.ts b/contentlayer.config.ts index 2b957b7b..9236e761 100644 --- a/contentlayer.config.ts +++ b/contentlayer.config.ts @@ -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' @@ -28,7 +29,8 @@ export default makeSource({ { behavior: 'wrap' } - ] + ], + [rehypeShiftHeading, { shift: 1 }] ] } })