According to Claude:
mermaid is initialized with no theme, so it always renders its light default — dark text, light node fills. The more complete fix would be passing theme: 'dark' to mermaid.initialize() when [data-bs-theme="dark"] is set. That's a plugin-config change.
According to Claude: