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: doesn´t support comment #3667

Open
2 of 17 tasks
ITCTOM opened this issue Sep 11, 2024 · 2 comments
Open
2 of 17 tasks

Mermaid: doesn´t support comment #3667

ITCTOM opened this issue Sep 11, 2024 · 2 comments

Comments

@ITCTOM
Copy link

ITCTOM commented Sep 11, 2024

Describe the bug

if using mermaid description language a comment in mermaid language is not supportet. No diagram is drawn.

Please complete the following:

Which version of .NET Interactive are you using? (In a notebook, run the #!about magic command. ):
Version: 1.0.522904+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074
Library version: 1.0.0-beta.24229.4+cdfa48b2ea1a27dfe0f545c42a34fd3ec7119074
Build date: 2024-09-11T07:40:37.8147123Z

  • OS
    • Windows 11
    • Windows 10
    • macOS
    • Linux (Please specify distro)
    • 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.

@ITCTOM
Copy link
Author

ITCTOM commented Sep 11, 2024

sorry i forget to mention: only if the comment is in first line of the mermaid polyglot cell.

@jonsequitur
Copy link
Contributor

jonsequitur commented Sep 11, 2024

Are you using the Mermaid comment syntax (using the %% prefix)?

In Polyglot Notebooks, the entire cell is treated as a single language, with the exception of magic commands, or unless split up using magic commands.

So either of the following works:

image

%% This is a comment

pie title Should you use a pie chart?
    "Yes" : 3
    "No, but we'll do it anyway" : 97
// This is a comment if the cell language is C#, JavaScript, etc.

#!mermaid

pie title Should you use a pie chart?
    "Yes" : 3
    "No, but we'll do it anyway" : 97

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

No branches or pull requests

2 participants