-
Notifications
You must be signed in to change notification settings - Fork 89
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
Add Mermaid support to documentation #1773
Comments
We have unfortunately run into a blocker where the generated SVG has issues with attributes that contain dashes, e.g. The exact same configuration works perfectly on Web Monetization. The difference is that Web Monetization is not a monorepo and was built with bun. It also does not have the Mathjax plugins installed. import remarkMermaid from 'remark-mermaidjs'
export default defineConfig({
markdown: {
remarkPlugins: [remarkMermaid],
}
}) Testing on a fresh Astro Starlight install built with pnpm using the same configuration as above also works correctly. The Mermaid plugin did not present any issues when used together with the Mathjax plugins. import remarkMermaid from 'remark-mermaidjs'
import remarkMath from 'remark-math'
import rehypeMathjax from 'rehype-mathjax'
export default defineConfig({
markdown: {
remarkPlugins: [remarkMath, remarkMermaid],
rehypePlugins: [rehypeMathjax]
}, Hui Jing is just very annoyed and confused at this point. |
I was testing this out and found a few things.
|
This issue is not entirely solved, but we do have Mermaid support in .md files with the ```mermaid syntax. It does not work in .mdx yet. So leaving this open for now. |
This has been resolved by #2237 |
We would like to add Mermaid support to the Rafiki docs, currently running on Starlight.
The text was updated successfully, but these errors were encountered: