Skip to content

Switching light/dark theme will crash Mermaid diagrams.Β #2107

@hepheir

Description

@hepheir

Checklist

How did you create the site?

Generated from chirpy-starter

Describe the bug

Toggle light/dark theme switch button on the sidebar to produce this bug.

Steps To Reproduce

  1. enable mermaid on a post
  2. open a post which includes mermaid diagrams
  3. switch to light/dark theme by clicking toggle button on the sidebar

Expected Behavior

  1. some or all diagrams will print error message on them: "Syntax error in text"
Before switching light/dark modeAfter switching light/dark mode
Screenshot 2024-12-11 at 18 56 21 Screenshot 2024-12-11 at 18 56 26

Environment

  • Ruby: 3.3.0 [arm64-darwin24]
  • Jekyll: 4.3.4
  • Chirpy: 7.2.2

Furthermore..

  • Gem: 3.5.23
  • OS: macOS Sequoia 15.2
  • Arch: arm64 (Apple Silicon)
  • Run Command: ./tools/run

Anything else?

I can fix this quickly. #2108

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingreleasedIncluded or resolved in the release

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions