Skip to content

Commit 6a9a985

Browse files
authored
Update diagrams.js.es6
1 parent 964f814 commit 6a9a985

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

assets/javascripts/lib/discourse-markdown/diagrams.js.es6

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { registerOption } from 'pretty-text/pretty-text';
22

33
registerOption((siteSettings, opts) => {
4-
opts.features.diagram = !!siteSettings.diagrams_plugin_enabled;
4+
opts.features.diagram = true;
55
});
66

77
function replaceDiagrams(text) {
@@ -16,5 +16,5 @@ function replaceDiagrams(text) {
1616

1717
export function setup(helper) {
1818
helper.whiteList(['div.discourse-sequence-diagram']);
19-
helper.addPreProcessor(replaceDiagrams);
19+
helper.addPreProcessor(text => replaceDiagrams(text));
2020
}

0 commit comments

Comments
 (0)