-
DescriptionI would like to define chunk options for styling all mermaid diagrams created in the document, rather than having to manually do it each time. For example, I would like all graphs to use the
But this distracts from the focus of the source document, which should be (imo) content rather than styling. I note similar things have been raised before so I am not sure if this is doable? Is there a way to prepend text to different code chunks? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not sure if you can directly inject Mermaid defaults into document YAML, but you can either set a theme or override the theme defaults from the YAML using SASS variables that Quarto provides. That might not be enough for non-CSS configuration options like using |
Beta Was this translation helpful? Give feedback.
-
This is something we could add to the baseline mermaid feature. We have our plates very full at the moment, but I'l create an enhancement ticket for it. |
Beta Was this translation helpful? Give feedback.
See #7295