Add comment
This commit is contained in:
parent
6b3634ec4c
commit
510e7be593
1 changed files with 2 additions and 0 deletions
|
|
@ -1128,6 +1128,8 @@ func Render(diagram *d2target.Diagram, opts *RenderOpts) ([]byte, error) {
|
||||||
]]>
|
]]>
|
||||||
</style>`, styleCSS, styleCSS2))
|
</style>`, styleCSS, styleCSS2))
|
||||||
|
|
||||||
|
// this script won't run in --watch mode because script tags are ignored when added via el.innerHTML = element
|
||||||
|
// https://developer.mozilla.org/en-US/docs/Web/API/Element/innerHTML
|
||||||
buf.WriteString(fmt.Sprintf(`<script type="application/javascript"><![CDATA[%s]]></script>`, fitToScreenScript))
|
buf.WriteString(fmt.Sprintf(`<script type="application/javascript"><![CDATA[%s]]></script>`, fitToScreenScript))
|
||||||
|
|
||||||
hasMarkdown := false
|
hasMarkdown := false
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue