From e7447008cef7310a928c98596d4c96253ef18a13 Mon Sep 17 00:00:00 2001 From: ansuz Date: Mon, 2 Dec 2019 13:08:33 -0500 Subject: [PATCH] enable more mermaid modes --- www/common/diffMarked.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/www/common/diffMarked.js b/www/common/diffMarked.js index 2b2cf4a1c..35bd82c55 100644 --- a/www/common/diffMarked.js +++ b/www/common/diffMarked.js @@ -84,7 +84,7 @@ define([ var defaultCode = renderer.code; renderer.code = function (code, language) { - if (language === 'mermaid' && (code.match(/^sequenceDiagram/) || code.match(/^(graph|gantt)/))) { + if (language === 'mermaid' && code.match(/^(graph|pie|gantt|sequenceDiagram|classDiagram|gitGraph)/))) { return '
'+code+'
'; } else { return defaultCode.apply(renderer, arguments);