diff --git a/extensions/markdown-math/notebook/katex.ts b/extensions/markdown-math/notebook/katex.ts index 631b3ac51c5a9..92b2e5a56a735 100644 --- a/extensions/markdown-math/notebook/katex.ts +++ b/extensions/markdown-math/notebook/katex.ts @@ -45,7 +45,7 @@ export async function activate(ctx: RendererContext) { styleTemplate.content.appendChild(link); document.head.appendChild(styleTemplate); - const katex = require('@iktakahiro/markdown-it-katex'); + const katex = require('@vscode/markdown-it-katex'); const macros = {}; markdownItRenderer.extendMarkdownIt((md: markdownIt.MarkdownIt) => { return md.use(katex, { diff --git a/extensions/markdown-math/package.json b/extensions/markdown-math/package.json index 045da771eb920..e7a9ebc105fbd 100644 --- a/extensions/markdown-math/package.json +++ b/extensions/markdown-math/package.json @@ -90,7 +90,7 @@ "build-notebook": "node ./esbuild" }, "dependencies": { - "@iktakahiro/markdown-it-katex": "mjbvz/markdown-it-katex" + "@vscode/markdown-it-katex": "^1.0.0" }, "devDependencies": { "@types/markdown-it": "^0.0.0", diff --git a/extensions/markdown-math/src/extension.ts b/extensions/markdown-math/src/extension.ts index 542a3ba154d82..cccd656f924ad 100644 --- a/extensions/markdown-math/src/extension.ts +++ b/extensions/markdown-math/src/extension.ts @@ -23,7 +23,7 @@ export function activate(context: vscode.ExtensionContext) { return { extendMarkdownIt(md: any) { if (isEnabled()) { - const katex = require('@iktakahiro/markdown-it-katex'); + const katex = require('@vscode/markdown-it-katex'); const options = { globalGroup: true, macros: {} }; md.core.ruler.push('reset-katex-macros', () => { options.macros = {}; }); return md.use(katex, options); diff --git a/extensions/markdown-math/yarn.lock b/extensions/markdown-math/yarn.lock index 53d2948120144..03ebbb2cf83b7 100644 --- a/extensions/markdown-math/yarn.lock +++ b/extensions/markdown-math/yarn.lock @@ -2,12 +2,6 @@ # yarn lockfile v1 -"@iktakahiro/markdown-it-katex@mjbvz/markdown-it-katex": - version "4.0.1" - resolved "https://codeload.github.com/mjbvz/markdown-it-katex/tar.gz/88f39cedd35bba713ebe26bdc153b378b17fde24" - dependencies: - katex "^0.16.2" - "@types/markdown-it@^0.0.0": version "0.0.0" resolved "https://registry.yarnpkg.com/@types/markdown-it/-/markdown-it-0.0.0.tgz#8f6acaa5e3245e275f684e95deb3e518d1c6ab16" @@ -18,6 +12,13 @@ resolved "https://registry.yarnpkg.com/@types/vscode-notebook-renderer/-/vscode-notebook-renderer-1.72.0.tgz#8943dc3cef0ced2dfb1e04c0a933bd289e7d5199" integrity sha512-5iTjb39DpLn03ULUwrDR3L2Dy59RV4blSUHy0oLdQuIY11PhgWO4mXIcoFS0VxY1GZQ4IcjSf3ooT2Jrrcahnw== +"@vscode/markdown-it-katex@^1.0.0": + version "1.0.0" + resolved "https://registry.yarnpkg.com/@vscode/markdown-it-katex/-/markdown-it-katex-1.0.0.tgz#c0b35df95be90f79ed92c8bae77a764e96dde5c4" + integrity sha512-J0jtR3iI1VTSX1fadhNRB6vQUh792+5D7TW6XhJuktgG9+4ZXtWHwFOttvQVw7XKMB7RiPBdGV4cLzEuYV6bSg== + dependencies: + katex "^0.16.2" + commander@^8.0.0: version "8.3.0" resolved "https://registry.yarnpkg.com/commander/-/commander-8.3.0.tgz#4837ea1b2da67b9c616a67afbb0fafee567bca66"