-
-
Notifications
You must be signed in to change notification settings - Fork 6.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
initialize of theme arguments works in version < 10, but not after #4672
Labels
Type: Bug / Error
Something isn't working or is incorrect
Comments
fralau
added
Status: Triage
Needs to be verified, categorized, etc
Type: Bug / Error
Something isn't working or is incorrect
labels
Jul 26, 2023
As indicated, I did use |
That was because you were using 2 separate script tags.
Removing the second script tag fixes the issue. <div class="mermaid">
graph LR
hello --> world
world --> again
again --> hello
</div>
<script type="module">
import mermaid from "https://unpkg.com/[email protected]/dist/mermaid.esm.min.mjs";
mermaid.initialize({
theme: "base",
themeVariables: {
primaryColor: "#BB2528",
primaryTextColor: "#fff",
primaryBorderColor: "#7C0000",
lineColor: "#F8B229",
secondaryColor: "#006100",
tertiaryColor: "#fff"
}
});
</script> |
Please close this if it was resolved. |
Interesting! Let me check. |
This worked, thanks! mkdocs-mermaid2 was fixed and it worked. See fralau/mkdocs-mermaid2-plugin#82 🚀 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Description
In version 10, the following sequence does not alter the theme:
(Does not work with
mermaid.initialize()
either).But works in version 9 (colors are properly changed):
Steps to reproduce
Try a diagram in version 9 and 10.
Screenshots
Version 9:
Version 10:
Code Sample
Use with e.g. this diagram:
Setup
Suggested Solutions
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: