From cc0715b9cb8746238aa1b71f67fbbcdbc2fa385e Mon Sep 17 00:00:00 2001 From: Mario Adrian Date: Fri, 27 Oct 2017 11:51:54 +0200 Subject: [PATCH] added mermaid support https://mermaidjs.github.io/ --- moemark.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/moemark.js b/moemark.js index 6bafce6c58..908d1b01f0 100644 --- a/moemark.js +++ b/moemark.js @@ -849,7 +849,7 @@ function Renderer(options) { Renderer.prototype.code = function(code, lang, escaped) { if (this.options.umlchart && typeof this.options.umlRenderer === 'function') { - if (lang === 'sequence' || lang === 'flow') return this.options.umlRenderer(code, lang); + if (lang === 'sequence' || lang === 'flow' || lang === 'mermaid') return this.options.umlRenderer(code, lang); } if (this.options.highlight) { var out = this.options.highlight(code, lang);