提交 5b804687 编写于 作者: A Alex Dima

Fix markdown preview

上级 90c1f7ab
......@@ -162,7 +162,7 @@ export class MarkdownWorker {
let highlighter = function(code: string, lang: string, callback?: (error: Error, result: string) => void) {
// Lookup the mode and use the tokenizer to get the HTML
let mimeForLang = this.modeService.getModeIdForLanguageName(lang) || lang || MarkdownWorker.DEFAULT_MODE;
let mimeForLang = modeService.getModeIdForLanguageName(lang) || lang || MarkdownWorker.DEFAULT_MODE;
modeService.getOrCreateMode(mimeForLang).then((mode) => {
callback(null, tokenizeToString(code, mode));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册