Added option for whether or not to cloneCssStyles as mentioned in issue #157.

This commit is contained in:
knsv
2015-05-30 17:20:24 +02:00
parent 173a2b12aa
commit 45f34d871b
12 changed files with 740 additions and 153 deletions

View File

@@ -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,'&lt;');
txt = he.decode(txt).trim();
mermaidAPI.render(id,txt,insertSvg);
}