Skip to content

Commit bceb7e9

Browse files
author
Bernard Xie
committed
markdown class has to have diagramHash targeting
1 parent 189e5a0 commit bceb7e9

File tree

77 files changed

+14176
-14175
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+14176
-14175
lines changed

d2renderers/d2sketch/testdata/opacity/sketch.exp.svg

+189-189
Loading

d2renderers/d2sketch/testdata/opacity_dark/sketch.exp.svg

+189-189
Loading

d2renderers/d2sketch/testdata/root-fill/sketch.exp.svg

+189-189
Loading

d2renderers/d2sketch/testdata/twitter/sketch.exp.svg

+189-189
Loading

d2renderers/d2sketch/testdata/twitter_dark/sketch.exp.svg

+189-189
Loading

d2renderers/d2svg/d2svg.go

+1
Original file line numberDiff line numberDiff line change
@@ -1764,6 +1764,7 @@ func Render(diagram *d2target.Diagram, opts *RenderOpts) ([]byte, error) {
17641764
}
17651765
if hasMarkdown {
17661766
css := MarkdownCSS
1767+
css = strings.ReplaceAll(css, ".md", fmt.Sprintf(".%s .md", diagramHash))
17671768
css = strings.ReplaceAll(css, "font-italic", fmt.Sprintf("%s-font-italic", diagramHash))
17681769
css = strings.ReplaceAll(css, "font-bold", fmt.Sprintf("%s-font-bold", diagramHash))
17691770
css = strings.ReplaceAll(css, "font-mono", fmt.Sprintf("%s-font-mono", diagramHash))

0 commit comments

Comments
 (0)