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 · 2 comments
Open

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

JakeIsMeh opened this issue Aug 25, 2024 · 2 comments
Labels

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: [email protected]
  • Builder: -
  • User Config: devtools, modules, routeRules, content
  • Runtime Modules: @nuxt/[email protected]
  • 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

Copy link

This issue is stale because it has been open 60 days with no activity. Remove stale label or comment or this will be closed in 30 days.

@github-actions github-actions bot added the Stale label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants