Skip to content
New issue

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

Unable to unset option content.markdown.anchorLinks.exclude #2764

Open
JakeIsMeh opened this issue Aug 25, 2024 · 1 comment
Open

Unable to unset option content.markdown.anchorLinks.exclude #2764

JakeIsMeh opened this issue Aug 25, 2024 · 1 comment

Comments

@JakeIsMeh
Copy link

Environment

(stackblitz)

  • Operating System: Linux
  • Node Version: v18.20.3
  • Nuxt Version: 3.13.0
  • CLI Version: 3.13.0
  • Nitro Version: 2.9.7
  • Package Manager: npm@10.2.3
  • Builder: -
  • User Config: devtools, modules, routeRules, content
  • Runtime Modules: @nuxt/content@2.13.2
  • Build Modules: -

Reproduction

https://stackblitz.com/edit/github-sgrg2e

Describe the bug

By default, H1s are excluded from anchor link generation. However, attempting to unset the content.markdown.anchorLinks.exclude array in nuxt.config.ts does not work.

Additional context

I've narrowed it down to Nuxt merging the default array with the config array (see below) thus far but am unsure if this behavior is an intentional configuration and so I'm filing this bug down here instead of upstream.

Screenshot 2024-08-23 200748

Logs

No response

@nobkd
Copy link
Contributor

nobkd commented Aug 25, 2024

If you want all headings to have links, you can set anchorLinks to true

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants