Skip to content

Commit

Permalink
Fixed yzhang-gh#426 getConfiguration
Browse files Browse the repository at this point in the history
  • Loading branch information
upupming committed May 13, 2019
1 parent d485552 commit 0ce61eb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/extension.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export function activate(context: ExtensionContext) {
return md.use(require('markdown-it-task-lists'))
.use(require('@neilsustc/markdown-it-katex'), {
throwOnError: false,
macros: workspace.getConfiguration('markdown.extension.katex').get<object>('macros')
macros: workspace.getConfiguration('markdown.extension.katex.macros')
});
}
}
Expand Down
2 changes: 1 addition & 1 deletion src/print.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ async function initMdIt() {
}).use(mdtl)
.use(mdkt, {
throwOnError: false,
macros: workspace.getConfiguration('markdown.extension.katex').get<object>('macros')
macros: workspace.getConfiguration('markdown.extension.katex.macros')
});

addNamedHeaders(md);
Expand Down

0 comments on commit 0ce61eb

Please sign in to comment.