How do I make multiple mermaid diagrams as subfigures? #11482
Answered
by
roaldarbol
roaldarbol
asked this question in
Q&A
-
DescriptionI am trying to create a single figure that contains multiple mermaid diagrams as subfigures (as in https://quarto.org/docs/authoring/figures.html#subfigures). I can get both to render, but not as subfigures. Here's a code snippet:
Is there a way of achieving that? |
Beta Was this translation helpful? Give feedback.
Answered by
roaldarbol
Nov 19, 2024
Replies: 2 comments 5 replies
-
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
roaldarbol
-
Don't mix components, nest them.
|
Beta Was this translation helpful? Give feedback.
5 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Ah, figured a way!
Since subfigures need their own labels/tags, and the way to achieve that is through a figure div, you can simply nest figure divs: