Browse Source

new markdown engine compatibility

master
Marius Ciepluch 7 years ago
committed by GitHub
parent
commit
e80c017c9e
1 changed files with 7 additions and 5 deletions
  1. +7
    -5
      assets/javascripts/image-tag-whitelist.js

+ 7
- 5
assets/javascripts/image-tag-whitelist.js

@ -1,12 +1,14 @@
import WhiteLister from 'pretty-text/white-lister';
export default { export default {
name: 'dropcap', name: 'dropcap',
initialize() { initialize() {
const whiteLister = new WhiteLister();
whiteLister.whiteListFeature("dropcap", [
'span.dropcap'
setup(helper);
]); ]);
} }
}; };
export function setup(helper) {
helper.whiteList([ 'span.dropcaps',
'span.sclass'
]);

Loading…
Cancel
Save