Skip to content

Commit

Permalink
Use the conditional API to render mermaid only when in HTML mode
Browse files Browse the repository at this point in the history
  • Loading branch information
coatless committed Nov 9, 2024
1 parent 6eaf079 commit 1cdde99
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions index.qmd
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ format:

This is a document themed using [**brand.yml**](https://posit-dev.github.io/brand-yml/)

::: {.content-visible when-format="html:js"}

## Mermaid Diagram

The following is a Mermaid diagram with branding applied:
Expand All @@ -31,6 +33,8 @@ graph TD;
C-->D;
```

:::

## Subheading

{{< lipsum 1 >}}

0 comments on commit 1cdde99

Please sign in to comment.