File tree Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Expand file tree Collapse file tree 2 files changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -787,7 +787,12 @@ var Graphviz = {
787
787
let vizInstance
788
788
[ ...document . querySelectorAll ( "pre[class=graphviz]" ) ] . forEach ( async ( x ) => {
789
789
if ( ! vizInstance ) vizInstance = await Viz . instance ( )
790
- const svg = vizInstance . renderSVGElement ( x . innerText )
790
+ const options = {
791
+ graphAttributes : {
792
+ bgcolor : "transparent" ,
793
+ } ,
794
+ }
795
+ const svg = vizInstance . renderSVGElement ( x . innerText , options )
791
796
x . parentNode . insertBefore ( svg , x ) ;
792
797
x . style . display = 'none'
793
798
} ) ;
Original file line number Diff line number Diff line change @@ -317,6 +317,10 @@ p.center {
317
317
}
318
318
}
319
319
320
+ svg .graphviz {
321
+ width : 100% ;
322
+ }
323
+
320
324
// Dropdowns
321
325
a .dropdown-trigger {
322
326
padding : 4px 5px ;
You can’t perform that action at this time.
0 commit comments