Browse Source

whitelist div.alert*

master
hape 3 years ago
parent
commit
d7c393e936
1 changed files with 11 additions and 1 deletions
  1. +11
    -1
      assets/javascripts/lib/discourse-markdown/dropcaps.js

+ 11
- 1
assets/javascripts/lib/discourse-markdown/dropcaps.js

@ -3,5 +3,15 @@ export function setup(helper) {
opts.features['dropcaps'] = true; //!!siteSettings.dropcaps_enabled;
});
helper.whiteList([ 'span.dropcaps', 'span.sclass' ]);
helper.allowList([
'div.alert',
'div.alert.alert-silver',
'div.alert.alert-info',
'div.alert.alert-success',
'div.alert alert-warning',
'div.alert alert-error',
'div.alert alert-danger',
'span.dropcaps',
'span.sclass'
]);
}

Loading…
Cancel
Save