vitepress icon indicating copy to clipboard operation
vitepress copied to clipboard

feat: support mermaid

Open 7nohe opened this issue 3 years ago • 3 comments

It would be nice to support mermaid in markdown files. The idea is based on this issue.

You can add diagrams to your markdown file as follows.

::: mermaid
sequenceDiagram
User->>Server: Request page
::: 

7nohe avatar Jul 07 '22 15:07 7nohe

Try implementing this on vite-3 branch for now. ESM SSR is supported there.

brc-dd avatar Jul 07 '22 20:07 brc-dd

@brc-dd Thanks for the review! I rebased the branch and it seems to be working fine.

7nohe avatar Jul 08 '22 14:07 7nohe

Cool. We'll get back to this once the Vite 3 PR is merged. It'll take some time as there is a lot of stuff there.

brc-dd avatar Jul 10 '22 08:07 brc-dd