Create a Quarto Mermaid Diagram Chunk With Variable Insertions
makemermaid(.object., ..., file)
nothing; used to knitr::knit_expand()
mermaid markup
character string or vector with mermaid
markup
name=value pairs that makes values replace {{name}}
elements in the markup
name of file to hold mermaid
markup after variable insertions. Run this in Quarto using a chunk to looks like the following, which was for file='mermaid1.mer'
.
```{mermaid}
%%| fig-cap: "Consort diagram produced by `mermaid`"
%%| label: fig-mermaid1
%%| file: mermaid1.mer
```
Frank Harrell
Takes a character string or vector and uses knitr::knit_expand()
to apply variable insertions before the diagram is rendered by Quarto. See this for an example.
makegraphviz()