You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi, I cannot manage to render mermaid charts with style classes.
Steps to reproduce
Case1: classDef
Running the following code you can see that github is able to render it as a mermaid graph.
Here I just define a style class for a node.
```{mermaid}
flowchart TD;
subgraph subg1
direction LR
W:::style1;
W --> Q
classDef style1 fill:#ffffff,stroke-width:1.5px,stroke:#000000, color: grey
end
```
flowchart TD;
subgraph subg1
direction LR
W:::style1;
W --> Q
classDef style1 fill:#ffffff,stroke-width:1.5px,stroke:#000000, color: grey
end
Loading
Case2: CSS
I tried to pass the style class via css, adding the mermaid.css file in the _quarto.yaml file, as shown in the docs here. But it didn't work.
```{mermaid}
flowchart TD;
subgraph solution1
direction LR
W --> Q
end
class W cssClass
```
What I'm doing wrong?
Expected behavior
I'd like to obtain the rendering of the chart, as shown in the example of "Case 1".
Actual behavior
It doesn't render, or I get a error message.
Your environment
OS: Mac 14.1
Quarto check output
Quarto 1.4.466
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.466
Path: /Applications/quarto/bin
Bug description
Hi, I cannot manage to render mermaid charts with style classes.
Steps to reproduce
Case1:
classDefRunning the following code you can see that github is able to render it as a mermaid graph.
Here I just define a style class for a node.
flowchart TD; subgraph subg1 direction LR W:::style1; W --> Q classDef style1 fill:#ffffff,stroke-width:1.5px,stroke:#000000, color: grey endCase2: CSS
I tried to pass the style class via css, adding the
mermaid.cssfile in the _quarto.yaml file, as shown in the docs here. But it didn't work.What I'm doing wrong?
Expected behavior
I'd like to obtain the rendering of the chart, as shown in the example of "Case 1".
Actual behavior
It doesn't render, or I get a error message.
Your environment
OS: Mac 14.1
Quarto check output
Quarto 1.4.466
[✓] Checking versions of quarto binary dependencies...
Pandoc version 3.1.8: OK
Dart Sass version 1.55.0: OK
Deno version 1.33.4: OK
[✓] Checking versions of quarto dependencies......OK
[✓] Checking Quarto installation......OK
Version: 1.4.466
Path: /Applications/quarto/bin
[✓] Checking tools....................OK
TinyTeX: (not installed)
Chromium: (not installed)
[✓] Checking LaTeX....................OK
Using: Installation From Path
Path: /Library/TeX/texbin
Version: 2023
[✓] Checking basic markdown render....OK
[✓] Checking Python 3 installation....OK
Version: 3.10.13
Path: /Users/giana/.pyenv/versions/3.10.13/bin/python3
Jupyter: (None)
[✓] Checking R installation...........OK
Version: 4.2.0
Path: /Library/Frameworks/R.framework/Resources
LibPaths:
- /Library/Frameworks/R.framework/Versions/4.2/Resources/library
knitr: 1.42
rmarkdown: 2.20
[✓] Checking Knitr engine render......OK