-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Not working with MDX? #2
Comments
This can be issue with Astro configuration. There is a demo in this repository and if I change locally extension to |
I thought that it may have been the starlight/tailwind template I used, but this is a fresh install of the base starlight, and I only added I was following your directions here but just had to tweak the custom.css because the SVG was not getting
Like I said, this works beautifully until I change the file from Do you think it's my astro config or are you thinking it's something with Astro's base config? |
BTW, it works fine if I change:
to use It's only doing this on the inline. |
I think I found what happened https://github.com/withastro/starlight/releases/tag/%40astrojs%2Fstarlight%400.23.0
import { defineConfig } from 'astro/config';
+ import mdx from '@astrojs/mdx';
import starlight from '@astrojs/starlight';
// https://astro.build/config
export default defineConfig({
integrations: [
starlight({
title: 'My docs',
// ...
}),
+ mdx(),
],
}); |
That fixed it! Thank you! |
I will re-open this ticket, because:
|
I want to use this in a Starlight site since the original rehype-mermaid does work in dark mode with SVG. Plus, I love that you have the pan zoom built in.
The problem I'm having is getting it to work in a
.mdx
file. It works fine in.md,
but when I use.mdx,
it doesn't render correctly. It spits in the DOM but doesn't render.The text was updated successfully, but these errors were encountered: