🐛 BUG: New MDX release breaks if you disable the collect-headings plugin. #4150
Labels
- P5: urgent
Fix build-breaking bugs affecting most users, should be released ASAP (priority)
pkg: mdx
Issues pertaining to `@astrojs/mdx` integration
What version of
astro
are you using?v1.0.0-rc.5
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
yarn
What operating system are you using?
Windows (WSL 2)
Describe the Bug
The added functionality in MDX that adds headings and frontmatter to layout props (#4134) does not work if you disable the custom plugin
collect-headings
as specified here: https://docs.astro.build/ar/guides/integrations-guide/mdx/#configurationIf that plugin is disabled, the function
getHeadings()
does not exist.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-6nege1?file=astro.config.mjs,src%2Fpages%2Findex.mdx,package.json&on=stackblitz
Participation
The text was updated successfully, but these errors were encountered: