mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Fix markdown-it-katex error (#202393)
This commit is contained in:
@@ -342,7 +342,11 @@ export const activate: ActivationFunction<void> = (ctx) => {
|
||||
}
|
||||
},
|
||||
extendMarkdownIt: (f: (md: typeof markdownIt) => void) => {
|
||||
f(markdownIt);
|
||||
try {
|
||||
f(markdownIt);
|
||||
} catch (err) {
|
||||
console.error('Error extending markdown-it', err);
|
||||
}
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user