Cleanup
This commit is contained in:
parent
b97e5ff5b0
commit
9fb45a3ab7
|
@ -240,7 +240,6 @@ function executeInPage(data) {
|
||||||
|
|
||||||
document.body.appendChild(sc)
|
document.body.appendChild(sc)
|
||||||
}else{
|
}else{
|
||||||
console.log('NO gantt config');
|
|
||||||
sc = document.createElement("script")
|
sc = document.createElement("script")
|
||||||
scContent = document.createTextNode('mermaid.ganttConfig = {useWidth:1200};')
|
scContent = document.createTextNode('mermaid.ganttConfig = {useWidth:1200};')
|
||||||
sc.appendChild(scContent)
|
sc.appendChild(scContent)
|
||||||
|
@ -256,7 +255,5 @@ function executeInPage(data) {
|
||||||
svg = document.querySelector('svg')
|
svg = document.querySelector('svg')
|
||||||
svgValue = xmlSerializer.serializeToString(svg)
|
svgValue = xmlSerializer.serializeToString(svg)
|
||||||
|
|
||||||
//console.log(document.body.outerHTML);
|
|
||||||
|
|
||||||
return svgValue
|
return svgValue
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
```mermaid
|
```
|
||||||
gantt
|
gantt
|
||||||
dateFormat yyyy-mm-dd
|
dateFormat yyyy-mm-dd
|
||||||
title Adding gantt diagram functionality to mermaid
|
title Adding gantt diagram functionality to mermaid
|
||||||
|
|
Loading…
Reference in New Issue