Skip to content

show dark mermaid diagrams without javascript - #89

Open
bc1cindy wants to merge 1 commit into
mainfrom
mermaid-no-js
Open

bc1cindy wants to merge 1 commit into
mainfrom
mermaid-no-js

Conversation

@bc1cindy

@bc1cindy bc1cindy commented Nov 15, 2026 •

Copy link
Copy Markdown
Member
Captura de Tela 2026-11-15 às 10 15 26 Captura de Tela 2026-11-15 às 10 15 32 Captura de Tela 2026-11-15 às 10 03 35 Captura de Tela 2026-11-15 às 10 03 41

without javascript, mermaid diagrams now follow prefers-color-scheme like the page does, as #39 does for its figure.

Without JavaScript the html element keeps the light class, but mdbook
paints the page dark under prefers-color-scheme: dark, so the light
diagram was shown on a dark page.
@oakagent

Copy link
Copy Markdown

ACK b460873

oakagent · automated · b460873 · 1 commit · 0 findings

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants