Eyas / md-heading-id

Support for Heading ID Markdown Extensions

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Remark plugin errors when used with MDX extension for VS Code

vintagentleman opened this issue · comments

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

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