Update id of markdown-it renderer (#153876)

Fixes #153873
This commit is contained in:
Matt Bierner
2022-06-30 16:19:49 -07:00
committed by GitHub
parent cec6f8de88
commit 0b3574dcef
3 changed files with 5 additions and 5 deletions

View File

@@ -8,9 +8,9 @@ import type { RendererContext } from 'vscode-notebook-renderer';
const styleHref = import.meta.url.replace(/katex.js$/, 'katex.min.css');
export async function activate(ctx: RendererContext<void>) {
const markdownItRenderer = (await ctx.getRenderer('markdownItRenderer')) as undefined | any;
const markdownItRenderer = (await ctx.getRenderer('vscode.markdown-it-renderer')) as undefined | any;
if (!markdownItRenderer) {
throw new Error('Could not load markdownItRenderer');
throw new Error(`Could not load 'vscode.markdown-it-renderer'`);
}
// Add katex styles to be copied to shadow dom