diff --git a/src/extensions/abcNotationExtension.js b/src/extensions/abcNotationExtension.js new file mode 100644 index 00000000..58013737 --- /dev/null +++ b/src/extensions/abcNotationExtension.js @@ -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); + } +});