Skip to content

Commit 0b3574d

Browse files
authored
Update id of markdown-it renderer (microsoft#153876)
Fixes microsoft#153873
1 parent cec6f8d commit 0b3574d

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

extensions/markdown-language-features/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@
4747
"contributes": {
4848
"notebookRenderer": [
4949
{
50-
"id": "markdownItRenderer",
50+
"id": "vscode.markdown-it-renderer",
5151
"displayName": "Markdown it renderer",
5252
"entrypoint": "./notebook-out/index.js",
5353
"mimeTypes": [

extensions/markdown-math/notebook/katex.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ import type { RendererContext } from 'vscode-notebook-renderer';
88
const styleHref = import.meta.url.replace(/katex.js$/, 'katex.min.css');
99

1010
export async function activate(ctx: RendererContext<void>) {
11-
const markdownItRenderer = (await ctx.getRenderer('markdownItRenderer')) as undefined | any;
11+
const markdownItRenderer = (await ctx.getRenderer('vscode.markdown-it-renderer')) as undefined | any;
1212
if (!markdownItRenderer) {
13-
throw new Error('Could not load markdownItRenderer');
13+
throw new Error(`Could not load 'vscode.markdown-it-renderer'`);
1414
}
1515

1616
// Add katex styles to be copied to shadow dom

extensions/markdown-math/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,10 @@
5858
],
5959
"notebookRenderer": [
6060
{
61-
"id": "markdownItRenderer-katex",
61+
"id": "vscode.markdown-it-katex-extension",
6262
"displayName": "Markdown it KaTeX renderer",
6363
"entrypoint": {
64-
"extends": "markdownItRenderer",
64+
"extends": "vscode.markdown-it-renderer",
6565
"path": "./notebook-out/katex.js"
6666
}
6767
}

0 commit comments

Comments
 (0)