test/markdown.config.ts
MattTheTekie a3f3494dec Initial commit
Created from https://vercel.com/new
2024-01-06 14:40:35 +00:00

22 lines
434 B
TypeScript

import remarkToc from "remark-toc";
import rehypeToc from "rehype-toc";
export default {
remarkPlugins: [[remarkToc, { tight: true, ordered: true, behavior: "after"}]],
rehypePlugins: [
[
rehypeToc,
{
headings: ["h4", "h2", "h3"],
nav: true,
position: "beforeend",
cssClasses: {
toc: "toc-post",
link: "toc-link",
},
},
],
],
};