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

More than one Mermaid Diagram does not render properly on Export to HTML or PDF #3561

Open
4 of 17 tasks
drewsteinacher opened this issue Jun 1, 2024 · 0 comments
Open
4 of 17 tasks

Comments

@drewsteinacher
Copy link

Describe the bug

When exporting an .ipynb to HTML or PDF with multiple Mermaid cells, only one appears to render properly, and the remainder appear as generic error messages like "Syntax error in text mermaid version 10.6.1":
image

For example, use this mermaid code in two cells in a .ipynb notebook:

sequenceDiagram
      Alice->>John: Hello John
      John-->>Alice: Great day!
Loading

image

You may need to have the following set up to get to the Export button:
image

  1. A Python environment installed with nbconvert installed (you may need to run pip install nbconvert as mentioned here).
  2. The Python VSCode extension installed and configured to the correct environment.

Some other related information:

  • Using a different version of mermaid-js might solve it per this issue
  • I have reproduced this on Windows 10 and Ubuntu.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro: Ubuntu)
    • iOS
    • Android
  • Browser
    • Chrome
    • Edge
    • Firefox
    • Safari
  • Frontend
    • Jupyter Notebook
    • Jupyter Lab
    • nteract
    • Visual Studio Code
    • Visual Studio Code Insiders
    • Visual Studio
    • Other (please specify)

Screenshots

If applicable, add screenshots to help explain your problem.

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

1 participant