-
Notifications
You must be signed in to change notification settings - Fork 382
Description
Bug description
When I create a flowchart with mermaid in revealjs, the text overflows the nodes
When I render the same qmd file as html, the flowchart looks fine
Changing the fig-width does not alter the behavior - it simply scales everytihng up/down
Steps to reproduce
---
title: "Test"
format: revealjs
---
## Mermaid Flowchart
```{mermaid}
flowchart LR
A[Hard edge] --> B(Round edge)
B --> C{Decision}
C --> D[Result one]
C --> E[Result two]
```
Expected behavior
a pretty chart with text contained in nodes
Actual behavior
an ugly chart with text overflowing nodes
Note that if I change format: revealjs to format:html (no other changes), then I get the pretty chart I want
Your environment
RStudio 2023.12.0+369 "Ocean Storm" Release (33206f75bd14d07d84753f965eaa24756eda97b7, 2023-12-17) for windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2023.12.0+369 Chrome/116.0.5845.190 Electron/26.2.4 Safari/537.36
Edition Windows 10 Pro
Version 22H2
Installed on 8/7/2021
OS build 19045.3930
Experience Windows Feature Experience Pack 1000.19053.1000.0