fix$(extensions): move katex a priority higher

This commit is contained in:
Felix Wu 2018-08-01 20:15:44 +02:00
parent 9809685e53
commit 218cb99920

View File

@ -6,7 +6,7 @@ extensionSvc.onGetOptions((options, properties) => {
options.math = properties.extensions.katex.enabled; options.math = properties.extensions.katex.enabled;
}); });
extensionSvc.onInitConverter(2, (markdown, options) => { extensionSvc.onInitConverter(3, (markdown, options) => {
if (options.math) { if (options.math) {
markdown.use(markdownItMath); markdown.use(markdownItMath);
markdown.renderer.rules.inline_math = (tokens, idx) => markdown.renderer.rules.inline_math = (tokens, idx) =>