Remark plugin errors when used with MDX extension for VS Code
vintagentleman opened this issue · comments
Konstantin Sipunin commented
Hi!
For some reason I can't get the Remark plugin working in VS Code :(
Steps to reproduce
- Clone this reproduction example project I've created.
- Open it in Visual Studio Code.
- Install the MDX extension.
tsconfig.json
is configured to enable theremark-custom-heading-id
plugin as shown in the extension's readme. - Open
index.mdx
.
Expected result
No problems with the document.
Actual result
Document parsing fails at index 0 with the error Cannot set properties of undefined (setting 'value')
. It appears to originate from this line in mdast-heading-id
.
Sindre Sorhus commented
I'm seeing the same problem when using this with Astro 4. Worked fine with Astro 3.