content icon indicating copy to clipboard operation
content copied to clipboard

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

Open JakeIsMeh opened this issue 1 year ago • 1 comments

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

JakeIsMeh avatar Aug 25 '24 06:08 JakeIsMeh

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

nobkd avatar Aug 25 '24 14:08 nobkd

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[bot] avatar Oct 25 '24 02:10 github-actions[bot]

This issue was closed because it has been stalled for 30 days with no activity.

github-actions[bot] avatar Nov 24 '24 02:11 github-actions[bot]