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
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 5 deletions

View file

@ -47,7 +47,7 @@
"contributes": {
"notebookRenderer": [
{
"id": "markdownItRenderer",
"id": "vscode.markdown-it-renderer",
"displayName": "Markdown it renderer",
"entrypoint": "./notebook-out/index.js",
"mimeTypes": [

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

View file

@ -58,10 +58,10 @@
],
"notebookRenderer": [
{
"id": "markdownItRenderer-katex",
"id": "vscode.markdown-it-katex-extension",
"displayName": "Markdown it KaTeX renderer",
"entrypoint": {
"extends": "markdownItRenderer",
"extends": "vscode.markdown-it-renderer",
"path": "./notebook-out/katex.js"
}
}