1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-06-15 23:00:36 +02:00

All: Disabled Mermaid support for now

This commit is contained in:
Laurent Cozic
2019-03-06 07:11:55 +00:00
parent fca4fa666d
commit e30bc12354
5 changed files with 37 additions and 6 deletions

View File

@ -198,7 +198,8 @@ class MdToHtml {
this.rendererPlugins_['mermaid'] = new MdToHtml_Mermaid();
}
return language in this.rendererPlugins_ ? this.rendererPlugins_[language] : null;
const plugin = this.rendererPlugins_[language];
return plugin && plugin.enabled() ? plugin : null;
}
parseInlineCodeLanguage_(content) {