mirror of
https://github.com/Microsoft/vscode
synced 2024-10-05 19:02:54 +00:00
parent
cec6f8de88
commit
0b3574dcef
|
@ -47,7 +47,7 @@
|
|||
"contributes": {
|
||||
"notebookRenderer": [
|
||||
{
|
||||
"id": "markdownItRenderer",
|
||||
"id": "vscode.markdown-it-renderer",
|
||||
"displayName": "Markdown it renderer",
|
||||
"entrypoint": "./notebook-out/index.js",
|
||||
"mimeTypes": [
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue