#Help with adding ## to markdown headings
9 messages · Page 1 of 1 (latest)
As far as I know you can pass a custom component to each html tag in <Content /> as props
You can also just use remark-auto-links
You can use the rehype-autolink-headings plugin to automatically add links to your markdown headings: ```js
import remarkToc from 'remark-toc';
import { rehypeHeadingIds } from '@astrojs/markdown-remark';
import rehypeAutolinkHeadings from 'rehype-autolink-headings';
export default {
markdown: {
rehypePlugins: [
rehypeHeadingIds,
[rehypeAutolinkHeadings, { behavior: 'append' }],
],
},
}
Yeah I figured it out 😄