sjwall / mdx-mermaid

Plug and play Mermaid in MDX
MIT License
161 stars 29 forks source link

Add support for mdx 3 #97

Open millette opened 3 months ago

millette commented 3 months ago

Describe the solution you'd like Support mdx 3 please :-)

Additional context I was planning to use mermaid within Astro but got this error instead:

[@mdx-js/rollup] Cannot read properties of undefined (reading 'call')
file: /home/millette/wip/mermaid-mdx/src/pages/page-2.mdx:undefined:undefined
  Stack trace:
    at Object.transform (file:///home/millette/wip/mermaid-mdx/node_modules/.pnpm/@astrojs+mdx@3.0.1_astro@4.9.1_@types+node@18.19.33_typescript@5.4.5_/node_modules/@astrojs/mdx/dist/vite-plugin-mdx.js:54:15)
    at file:///home/millette/wip/mermaid-mdx/node_modules/.pnpm/rollup@4.18.0/node_modules/rollup/dist/es/shared/node-entry.js:19774:40
sjwall commented 4 weeks ago

Hi, currently I have no plans to implement support for mdx 3. A PR doing this is welcome