MDX and rehype-mathjax not rendering properly #6404
Labels
- P4: important
Violate documented behavior or significantly impacts performance (priority)
pkg: mdx
Issues pertaining to `@astrojs/mdx` integration
What version of
astro
are you using?2.0.16
Are you using an SSR adapter? If so, which one?
None
What package manager are you using?
pnpm
What operating system are you using?
Windows
Describe the Bug
rehype-mathjax (CHTML) creates html structure and inject CSS, but the problem is that the CSS gets escaped
for example
instead of
Its works correctly when using markdown only or importing a
.md
file (containing math expression) into a.mdx
file.Link to Minimal Reproducible Example
https://stackblitz.com/edit/github-r1w9pn?file=src/content/blog/math.mdx
Participation
The text was updated successfully, but these errors were encountered: