nuxt / content

The file-based CMS for your Nuxt application, powered by Markdown and Vue components.
https://content.nuxt.com
MIT License
3.12k stars 623 forks source link

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

Open JakeIsMeh opened 2 months ago

JakeIsMeh commented 2 months ago

Environment

(stackblitz)

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 commented 2 months ago

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

github-actions[bot] commented 1 week ago

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.