-
Notifications
You must be signed in to change notification settings - Fork 198
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
mermaid is not rendering in Markdown #959
Comments
Heya, have you tried doing it in a restructuredtext file? FYI though I don't think you need to indent the mermaid syntax:
|
I specifically want the mermaid chart to be inside the .md file. The extension I linked in OP shows it should be possible. |
yes but... thus far, there is nothing to suggest this is a bug with myst-parser or anything that can be fixed here, its more likely a bug in https://github.com/mgaitan/sphinxcontrib-mermaid if it was shown that exactly the same thing works correctly within a restructuredtext file, then ok, thats more evidence that perhaps there is a fault in myst-parser. I'd also note that previously I had a mermaid graph example in the documentation for this repo, but removed it due to this issue: mgaitan/sphinxcontrib-mermaid#109, which infuriatingly after 1.5 years is still not fixed. |
I was not able to reproduce this using the given example or any variation on its whitespace. My guess as to what appears to be happening based on the output image (if it is MyST Parser) is that the graph's content is somehow getting recognized as a Markdown code block, which can be specified in Markdown by indenting. The versions I'm using are:
@monajalal can you please provide a full file example? I will investigate if this could be a regression in 3.0.1 shortly, but I doubt it. |
Is the problem about the presence or lack of braces
GitHub seems to need no braces and sphinxcontrib-mermaid appears to need the braces. Fixed by adding |
What version of
myst-parser
are you using?$ pip show myst-parser Name: myst-parser Version: 3.0.1 Summary: An extended CommonMark compliant parser, Home-page: Author: Author-email: Chris Sewell chrisj_sewell@hotmail.com License: Location: /home/mona/anaconda3/lib/python3.9/site-packages Requires: docutils, jinja2, markdown-it-py, mdit-py-plugins, pyyaml, sphinx Required-by:
What version dependencies are you using?
sphinxcontrib-mermaid
What operating system are you using?
Ubuntu 22.04
Describe the Bug
I am using
https://github.com/mgaitan/sphinxcontrib-mermaid
and when I do
make html
this is what I get.The text was updated successfully, but these errors were encountered: