feat$(abcjs): add extension file

This commit is contained in:
Felix Wu 2018-08-01 20:15:11 +02:00
parent 6dbd81c406
commit 9809685e53

View File

@ -0,0 +1,13 @@
// import abcjs from 'abcjs';
import markdownItNotesSheet from './libs/markdownItNotesSheet';
import extensionSvc from '../services/extensionSvc';
extensionSvc.onGetOptions((options, properties) => {
options.abc = properties.extensions.abc.enabled;
});
extensionSvc.onInitConverter(2, (markdown, options) => {
if (options.abc) {
markdown.use(markdownItNotesSheet);
}
});