Fix cache issues with mermaid

pull/1/head
yflory 5 years ago
parent 05cb082e2f
commit 7047abe407

@ -84,7 +84,7 @@ define([
var defaultCode = renderer.code;
renderer.code = function (code, language) {
if (language === 'mermaid' && code.match(/^(graph|pie|gantt|sequenceDiagram|classDiagram|gitGraph)/)) {
return '<pre class="mermaid">'+code+'</pre>';
return '<pre class="mermaid">'+Util.fixHTML(code)+'</pre>';
} else {
return defaultCode.apply(renderer, arguments);
}

Loading…
Cancel
Save