Consider this .qmd:

````
---
title: mermaid captions
---

```{mermaid}

%%| fig-cap: package.json was a mistake

flowchart TD

subgraph wintercg
  deno
  cloudflare
end

bun
```
````

Our metadata block search is brittle; we should either fix this or warn the user about the extra line break.
cscheid
2023-05-31T18:15:36Z
cscheid
mermaid lint
Future
open
lint: warn about metadata block in diagrams being in the wrong place
https://github.com/quarto-dev/quarto-cli/issues/5767