slidev icon indicating copy to clipboard operation
slidev copied to clipboard

Mermaid config doesn't work.

Open Erifirin opened this issue 5 months ago • 3 comments

I tried to change mermaid theme as it described in documentation: https://sli.dev/custom/config-mermaid. I created a file ./setup/mermaid.ts and copied example into it. But it didn't change anything and mermaid still uses the default theme. However, custom theme variables work properly if mermaid.ts is changed while slidev is running. After restarting slidev, mermaid reverts back to default theme.

Minimal reproduction

Steps to reproduce the behavior:

  1. Create ./setup/mermaid.ts with content from example https://sli.dev/custom/config-mermaid#custom-theme-styles;
  2. Run slidev;
  3. Go to slide with mermaid graph/flowchart.

Environment

  • Slidev: 0.49.27, 0.49.29
  • Browser: chrome 128
  • OS: win 10

Erifirin avatar Sep 02 '24 15:09 Erifirin