diff --git a/extensions/markdown-language-features/package-lock.json b/extensions/markdown-language-features/package-lock.json index 0ba6fbad391..7d8c47eabc9 100644 --- a/extensions/markdown-language-features/package-lock.json +++ b/extensions/markdown-language-features/package-lock.json @@ -25,7 +25,7 @@ "devDependencies": { "@types/dompurify": "^3.0.5", "@types/lodash.throttle": "^4.1.9", - "@types/markdown-it": "14.1.0", + "@types/markdown-it": "^14.1.2", "@types/node": "22.x", "@types/picomatch": "^2.3.0", "@types/vscode-notebook-renderer": "^1.60.0", @@ -195,14 +195,14 @@ } }, "node_modules/@types/markdown-it": { - "version": "14.1.0", - "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.0.tgz", - "integrity": "sha512-B/o5iMXxpIAl1+792pO4ryhrNNiAus9HhrTs+Gt2m+6SIdEUEvyOIs0iqDNjTSRgbelWvyeek3UxfYYOKDaWfA==", + "version": "14.1.2", + "resolved": "https://registry.npmjs.org/@types/markdown-it/-/markdown-it-14.1.2.tgz", + "integrity": "sha512-promo4eFwuiW+TfGxhi+0x3czqTYJkG8qB17ZUJiVF10Xm7NLVRSLUsfRTU/6h1e24VvRnXCx+hG7li58lkzog==", "dev": true, "license": "MIT", "dependencies": { - "@types/linkify-it": "*", - "@types/mdurl": "*" + "@types/linkify-it": "^5", + "@types/mdurl": "^2" } }, "node_modules/@types/mdurl": { diff --git a/extensions/markdown-language-features/package.json b/extensions/markdown-language-features/package.json index 9f89c72836e..c242dceffd8 100644 --- a/extensions/markdown-language-features/package.json +++ b/extensions/markdown-language-features/package.json @@ -789,7 +789,7 @@ "devDependencies": { "@types/dompurify": "^3.0.5", "@types/lodash.throttle": "^4.1.9", - "@types/markdown-it": "14.1.0", + "@types/markdown-it": "^14.1.2", "@types/node": "22.x", "@types/picomatch": "^2.3.0", "@types/vscode-notebook-renderer": "^1.60.0", diff --git a/extensions/markdown-language-features/src/markdownEngine.ts b/extensions/markdown-language-features/src/markdownEngine.ts index 8e10d72c730..0f4c7eb6717 100644 --- a/extensions/markdown-language-features/src/markdownEngine.ts +++ b/extensions/markdown-language-features/src/markdownEngine.ts @@ -3,7 +3,7 @@ * Licensed under the MIT License. See License.txt in the project root for license information. *--------------------------------------------------------------------------------------------*/ -import type MarkdownIt = require('markdown-it'); +import type MarkdownIt from 'markdown-it'; import * as vscode from 'vscode'; import { ILogger } from './logging'; import { MarkdownContributionProvider } from './markdownExtensions';