-
Notifications
You must be signed in to change notification settings - Fork 483
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
The exported svg has the same className, resulting in style overwriting #2254
Comments
use |
The d2-xxxx should be a unique hash based on some markers of the diagram. So only the same two diagrams will use the same class, which overwriting css is fine. Are you seeing a case where two different diagrams have the same hash? If so, that is a bug and I'd love to see what produced it |
dark and light version of the same diagram. Example here at the bottom https://beoe.stereobooster.com/start-here/dark-scheme/ |
When I use d2 to generate svg, the svg string always has the same class:
When I display multiple svgs on the same html page, the styles will interfere with each other.
How can I specify that each svg generates a unique class?
Thanks.
The text was updated successfully, but these errors were encountered: