We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 964f814 commit 6a9a985Copy full SHA for 6a9a985
assets/javascripts/lib/discourse-markdown/diagrams.js.es6
@@ -1,7 +1,7 @@
1
import { registerOption } from 'pretty-text/pretty-text';
2
3
registerOption((siteSettings, opts) => {
4
- opts.features.diagram = !!siteSettings.diagrams_plugin_enabled;
+ opts.features.diagram = true;
5
});
6
7
function replaceDiagrams(text) {
@@ -16,5 +16,5 @@ function replaceDiagrams(text) {
16
17
export function setup(helper) {
18
helper.whiteList(['div.discourse-sequence-diagram']);
19
- helper.addPreProcessor(replaceDiagrams);
+ helper.addPreProcessor(text => replaceDiagrams(text));
20
}
0 commit comments