nuxt/content markdownParser change local options
I use
import markdownParser from '@nuxt/content/transformers/markdown'
to parse the markdown
like this:
It works well but automatically replaces markdown headings like ### Heading
with links+anchortags like this:
I want to keep 'normal' header tags without links etc. so I'm looking for an option to change this behavior in my component. If possible, I don't want to disable this functionality globally in my nuxt config because I might need it later in a blog component.2 Replies
you can update that based on the remark/rehype plugins used. See https://github.com/nuxt-modules/mdc?tab=readme-ov-file#options
GitHub
GitHub - nuxt-modules/mdc: MDC supercharges regular Markdown to wri...
MDC supercharges regular Markdown to write documents interacting deeply with any Vue component. - nuxt-modules/mdc