Skip to content

Is there a way to include mermaid in README that will get rendered by pkgdown? #2979

@Aariq

Description

@Aariq

Is there a way to have a ```mermaid chunk in README.md that would also be rendered in the pkgdown website? Or is the only solution something like this in a README.qmd and let webshot2 convert it to an image on render?

---
format: gfm
---

```{r}
#| echo: false
DiagrammeR("
graph TD
    A[one] --> B[two]

")
```

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions