Support mermaid configuration via front matter #13595
Closed
multimeric
started this conversation in
Feature Requests
Replies: 1 comment 1 reply
-
|
If you're getting that YAML parsing error, it's a Quarto bug. I'm reluctant to promise a quick fix because it boils down to the way Quarto currently implements frontmatter detection (we inherit the bad behavior from knitr where they're detected with regexes). This bug will 100% be fixed when we switch to https://github.com/quarto-dev/quarto-markdown, though! (The planned timeline is an opt-in mechanism in 1.9, and an eventual switch to quarto-markdown being the default behavior.) With all that said, I'm having a hard time reproducing your report. I see this: output
input(The fact that we override mermaid's theming is a separate bug.) |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment

Uh oh!
There was an error while loading. Please reload this page.
-
Description
Mermaid's recommended way of applying configuration is via frontmatter for the diagram.
However, if we create a Quarto document that has mermaid frontmatter:
We get an error:
ERROR: Expected YAML front matter to end with '---'Beta Was this translation helpful? Give feedback.
All reactions