feat$(abcjs): add extension file
This commit is contained in:
parent
6dbd81c406
commit
9809685e53
13
src/extensions/abcNotationExtension.js
Normal file
13
src/extensions/abcNotationExtension.js
Normal 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);
|
||||||
|
}
|
||||||
|
});
|
Loading…
Reference in New Issue
Block a user