Closed lloydjatkinson closed 2 years ago
I'm getting the same error with pnpm using rehype-raw
with rehype-shiki-twoslash
.
MRE: Stackblitz
I came back to this issue after a while. After performing some debugging, it seems the error actually occurs when the @mdx-js/mdx
package generates an empty const
statement. I checked and it seems there is already an issue open for this exact problem. @lloydjatkinson seeing as the bug is not actually related to the Astro compiler you may want to close this issue.
Thanks @fbubbar! Going to close this since it's being tracked upstream.
What version of
@astrojs/compiler
are you using?0.23.3
What package manager are you using?
npm
What operating system are you using?
Windows
Describe the Bug
Following the MDX docs on supporting maths I installed
remark-math
andrehype-mathjax
. However, locally I get a parsing error but on Stackblitz it just renders invisible SVGs.Locally this is what I have:
Which results in:
Really no idea why it has different results locally or on Stackblitz.
Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-kseosl?file=astro.config.mjs,src%2Fpages%2Findex.mdx&on=stackblitz