-
-
Notifications
You must be signed in to change notification settings - Fork 21
Open
Description
Bug Report: Mermaid Diagram Size Control
This is a test case demonstrating the issue with Mermaid diagram size control when using Quarto's diagram filter.
Attachment Contents
This archive contains:
index.qmd: A Quarto document with multiple Mermaid diagrams using different size control methods_quarto.yml: Configuration file enabling the diagram filterindex.html: Rendered output showing the sizing issue
Reproduction Steps
-
Extract the archive
-
Run
quarto render index.qmd -
Open the generated
index.htmlfile in a browser -
Observe that all diagrams render with similar sizes despite different sizing approaches:
## Method 1: Using Quarto Block Options ```{.mermaid} %%| fig-width: 8 %%| fig-height: 5 %%| fig-align: center flowchart TD A[Start] --> B{Condition} B -- Yes --> C[Action A] B -- No --> D[Action B] C --> E[End] D --> E ```
Expected: Different sized diagrams based on the specified dimensions
Actual: All diagrams appear with approximately the same size
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels