From cb2e5957f03dd7722177dd2aa76f8289816579b2 Mon Sep 17 00:00:00 2001 From: hape Date: Mon, 8 Feb 2021 00:09:04 +0100 Subject: [PATCH] =?UTF-8?q?Dateiname=20=C3=A4ndern=20js=20->=20js.es6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../javascripts/lib/discourse-markdown/allowlist.js.es6 | 15 +++++++++++++++ assets/javascripts/lib/discourse-markdown/dropcaps.js | 15 --------------- 2 files changed, 15 insertions(+), 15 deletions(-) create mode 100644 assets/javascripts/lib/discourse-markdown/allowlist.js.es6 delete mode 100644 assets/javascripts/lib/discourse-markdown/dropcaps.js diff --git a/assets/javascripts/lib/discourse-markdown/allowlist.js.es6 b/assets/javascripts/lib/discourse-markdown/allowlist.js.es6 new file mode 100644 index 0000000..d53edf5 --- /dev/null +++ b/assets/javascripts/lib/discourse-markdown/allowlist.js.es6 @@ -0,0 +1,15 @@ +export function setup(helper) { + helper.registerOptions((opts, siteSettings)=>{ + opts.features['dropcaps'] = true; //!!siteSettings.dropcaps_enabled; + }); + + helper.allowList(["div.alert"]); + helper.allowList(["div.alert.alert-silver"]); + helper.allowList(["div.alert.alert-info"]); + helper.allowList(["div.alert.alert-success"]); + helper.allowList(["div.alert.alert-warning"]); + helper.allowList(["div.alert.alert-error"]); + helper.allowList(["div[class]"]); + helper.allowList(["span[class]"]); + helper.allowList(["font[color]"]); +} diff --git a/assets/javascripts/lib/discourse-markdown/dropcaps.js b/assets/javascripts/lib/discourse-markdown/dropcaps.js deleted file mode 100644 index d53edf5..0000000 --- a/assets/javascripts/lib/discourse-markdown/dropcaps.js +++ /dev/null @@ -1,15 +0,0 @@ -export function setup(helper) { - helper.registerOptions((opts, siteSettings)=>{ - opts.features['dropcaps'] = true; //!!siteSettings.dropcaps_enabled; - }); - - helper.allowList(["div.alert"]); - helper.allowList(["div.alert.alert-silver"]); - helper.allowList(["div.alert.alert-info"]); - helper.allowList(["div.alert.alert-success"]); - helper.allowList(["div.alert.alert-warning"]); - helper.allowList(["div.alert.alert-error"]); - helper.allowList(["div[class]"]); - helper.allowList(["span[class]"]); - helper.allowList(["font[color]"]); -}