Skip to content
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 renders text with no errors #113

Open
Venkat-Rajgopal opened this issue Mar 7, 2023 · 8 comments
Open

Mermaid renders text with no errors #113

Venkat-Rajgopal opened this issue Mar 7, 2023 · 8 comments

Comments

@Venkat-Rajgopal
Copy link

Running the mermaid extension results in a plain text with no errors during the sphinx-autobuild. Following are the versions I am using

sphinxcontrib-mermaid==0.8.1
sphinx= ">=5<6"
myst-parser = "0.19.1"

Extensions

extensions = ["myst_parser",
              "sphinx_design",
              "sphinxcontrib.mermaid"]

In the markdown.

    sequenceDiagram
      participant Alice
      participant Bob
      Alice->John: Hello John, how are you?
      

Result in a plain text like this.

sequenceDiagram participant Alice participant Bob Alice->John: Hello John, how are you?

With no errors this is hard to debug. Any pointers here ?

@andreidci
Copy link

I am facing the same issue , it worked fine for months and now instead of seeing the diagram, the plain text is shown in the html page.

I am using:
sphinx==5.3.0, myst-parser==0.18.1, sphinxcontrib-mermaid==0.7.1

Extensions
extensions = [ "sphinx.ext.autosectionlabel", "sphinx.ext.autodoc", "sphinx.ext.napoleon", "myst_parser", "sphinxcontrib.mermaid", ]

Sample from md file :

## Normal scenario

```{mermaid}
sequenceDiagram
    participant C as Caller ( C )
    participant T as Target ( T )

(closing ``` are also present)

@andreidci
Copy link

I just now tried bumping up the versions and it's working again 👍

Now using:
sphinx==6.1.3, myst-parser==1.0.0, sphinxcontrib-mermaid==0.8.1

So seems like it's an issue in either myst-parser or Sphinx

@Venkat-Rajgopal
Copy link
Author

I just now tried bumping up the versions and it's working again 👍

Now using: sphinx==6.1.3, myst-parser==1.0.0, sphinxcontrib-mermaid==0.8.1

So seems like it's an issue in either myst-parser or Sphinx

have bumped the same versions. Still no change. Is there a way to rebuilt sphinx again. It was working then suddenly stopped rendering during version changes.

@Venkat-Rajgopal
Copy link
Author

Looks like this fix needs to be merged.

@slavakx
Copy link

slavakx commented Apr 25, 2023

I just now tried bumping up the versions and it's working again 👍

Now using: sphinx==6.1.3, myst-parser==1.0.0, sphinxcontrib-mermaid==0.8.1

So seems like it's an issue in either myst-parser or Sphinx

Still have this problem.
I am using sphinx==6.2.1, myst-parser==1.0.0, sphinxcontrib-mermaid==0.8.1

@Venkat-Rajgopal
Copy link
Author

Same here

@fumitoh
Copy link

fumitoh commented May 5, 2023

Isn't this because of nbsphinx as reported in #74?
Setting nbsphinx_requirejs_path = '' in conf.py solved the issue as recommended here.

@Venkat-Rajgopal
Copy link
Author

Isn't this because of nbsphinx as reported in #74?
Setting nbsphinx_requirejs_path = '' in conf.py solved the issue as recommended here.

Doesn't seem to solve. Which version configurations are correct here?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants