Added remark-toc plugin.
This commit is contained in:
parent
d2707ab488
commit
eb916c96ed
3 changed files with 43 additions and 0 deletions
|
|
@ -2,6 +2,7 @@
|
|||
import { defineConfig } from 'astro/config';
|
||||
import mdx from '@astrojs/mdx';
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import remarkToc from 'remark-toc';
|
||||
import { unified } from '@astrojs/markdown-remark';
|
||||
import { ScriptureLinks } from './src/utils/rehype';
|
||||
|
||||
|
|
@ -13,6 +14,7 @@ export default defineConfig({
|
|||
integrations: [mdx()],
|
||||
markdown: {
|
||||
processor: unified({
|
||||
remarkPlugins: [remarkToc],
|
||||
rehypePlugins: [ScriptureLinks],
|
||||
}),
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in a new issue