Disable markdown header (#, ##,###) being always links? #1495
Replies: 5 comments
-
Solved it. You just have to overwrite the h tags in the nuxt.config.ts |
Beta Was this translation helpful? Give feedback.
-
You can override the H2 to H4 to disable the generation. Refer to the prose docs |
Beta Was this translation helpful? Give feedback.
-
If you've got a
( from https://stackoverflow.com/questions/58785061/how-to-remove-anchor-links-from-headers-in-markdown ) |
Beta Was this translation helpful? Give feedback.
-
This has an actual option since a while ago. But it was moved to another package: See https://github.com/nuxt-modules/mdc?tab=readme-ov-file#configurations |
Beta Was this translation helpful? Give feedback.
-
It is already in the configuration. Just add some lines to the nuxt.config.ts.
https://content.nuxt.com/docs/getting-started/configuration#anchorlinks |
Beta Was this translation helpful? Give feedback.
-
Hey is there a way to disable the functionality that a headers is also an anchor link?
f.e.
'### Header
Html Output:
<h3 id="header"><a href="/#header">Header</a><h3>
I don't want to have an anchor link. Is there a way to set this up?
Beta Was this translation helpful? Give feedback.
All reactions