We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Darwin
v16.15.1
3.1.1
2.1.0
yarn@1.22.15
vite
build
typescript
modules
app
googleFonts
content
yandexMetrika
@nuxtjs/tailwindcss@6.3.0
@nuxtjs/google-fonts@3.0.0-1
@nuxt/content@2.4.2
yandex-metrika-module-nuxt3@1.5.1
-
Any nuxt3 project with content module
If I turn off rehype-slug plugin, it still adds undefined link to headers.
undefined
content: { markdown: { rehypePlugins: { "rehype-slug": false } } },
What I then get in html:
<a href="#undefined"><!--[-->My test header<!--]--></a>
No response
The text was updated successfully, but these errors were encountered:
If you just want to disable anchor link generation on headings, you can do so by setting anchorLinks option in the nuxt.config.ts to false.
anchorLinks
nuxt.config.ts
false
But you also have a point, that it should automatically be disabled, if id is undefined.
id
Sorry, something went wrong.
Thank you, I haven't noticed this option. Now it works as expected with the anchorLinks turned off.
Should be fixed with https://github.com/nuxt/content/releases/tag/v2.5.0
No branches or pull requests
Environment
Darwin
v16.15.1
3.1.1
2.1.0
yarn@1.22.15
vite
build
,vite
,typescript
,modules
,app
,googleFonts
,content
,yandexMetrika
@nuxtjs/tailwindcss@6.3.0
,@nuxtjs/google-fonts@3.0.0-1
,@nuxt/content@2.4.2
,yandex-metrika-module-nuxt3@1.5.1
-
Reproduction
Any nuxt3 project with content module
Describe the bug
If I turn off rehype-slug plugin, it still adds
undefined
link to headers.What I then get in html:
Additional context
No response
Logs
No response
The text was updated successfully, but these errors were encountered: