Eyas / md-heading-id

Support for Heading ID Markdown Extensions
MIT License
17 stars 2 forks source link

Remark plugin errors when used with MDX extension for VS Code #8

Open vintagentleman opened 11 months ago

vintagentleman commented 11 months ago

Hi!

For some reason I can't get the Remark plugin working in VS Code :(

Steps to reproduce

  1. Clone this reproduction example project I've created.
  2. Open it in Visual Studio Code.
  3. Install the MDX extension. tsconfig.json is configured to enable the remark-custom-heading-id plugin as shown in the extension's readme.
  4. 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.

MDX parsing issue

sindresorhus commented 10 months ago

I'm seeing the same problem when using this with Astro 4. Worked fine with Astro 3.