mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 04:49:44 +02:00
Added option for whether or not to cloneCssStyles as mentioned in issue #157.
This commit is contained in:
@@ -48,6 +48,8 @@ var init = function () {
|
||||
var i;
|
||||
|
||||
console.log('Found ',nodes.length,' nodes');
|
||||
console.log('Hooo hooo');
|
||||
mermaidAPI.initialize(mermaid_config);
|
||||
var insertSvg = function(svgCode){
|
||||
element.innerHTML = svgCode;
|
||||
};
|
||||
@@ -69,6 +71,7 @@ var init = function () {
|
||||
txt = txt.replace(/</g,'<');
|
||||
txt = he.decode(txt).trim();
|
||||
|
||||
|
||||
mermaidAPI.render(id,txt,insertSvg);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user