Mermaid diagrams don't update properly when changing color scheme

Steps to reproduce

  1. Make a mermaid diagram. Code:
graph LR
    A[Learn Something] --> B((Explain it)) --> C{{Are there any gaps in the explanation?}} --> Yes -->|Revise Explanation| B
    C --> No --> D[You've learned it]

  1. Change color scheme (light to dark or dark to light).

Expected result

Actual result

Environment

  • Operating system: Windows 10
  • Obsidian version: v0.8.2

Additional information

The graph only updates properly once the you have made a change to it. Changing other text in the document does not update the diagram.