diff --git a/markdownlint.js b/markdownlint.js index 6f9ec848e..a66da2c17 100755 --- a/markdownlint.js +++ b/markdownlint.js @@ -309,14 +309,13 @@ function lintAndPrint(stdin, files) { ...lintOptions, resultVersion: 3 }; - const markdownlintRuleHelpers = require('markdownlint/helpers'); for (const file of files) { fixOptions.files = [file]; const fixResult = markdownlint.sync(fixOptions); const fixes = fixResult[file].filter(error => error.fixInfo); if (fixes.length > 0) { const originalText = fs.readFileSync(file, fsOptions); - const fixedText = markdownlintRuleHelpers.applyFixes(originalText, fixes); + const fixedText = markdownlint.applyFixes(originalText, fixes); if (originalText !== fixedText) { fs.writeFileSync(file, fixedText, fsOptions); } diff --git a/package-lock.json b/package-lock.json index fb7743c49..a524ba705 100644 --- a/package-lock.json +++ b/package-lock.json @@ -16,7 +16,7 @@ "js-yaml": "^4.1.0", "jsonc-parser": "~3.3.1", "jsonpointer": "5.0.1", - "markdownlint": "~0.35.0", + "markdownlint": "~0.36.1", "minimatch": "~10.0.1", "run-con": "~1.3.2", "smol-toml": "~1.3.0" @@ -5573,13 +5573,12 @@ } }, "node_modules/markdownlint": { - "version": "0.35.0", - "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.35.0.tgz", - "integrity": "sha512-wgp8yesWjFBL7bycA3hxwHRdsZGJhjhyP1dSxKVKrza0EPFYtn+mHtkVy6dvP1kGSjovyG5B8yNP6Frj0UFUJg==", - "license": "MIT", + "version": "0.36.1", + "resolved": "https://registry.npmjs.org/markdownlint/-/markdownlint-0.36.1.tgz", + "integrity": "sha512-s73fU2CQN7WCgjhaQUQ8wYESQNzGRNOKDd+3xgVqu8kuTEhmwepd/mxOv1LR2oV046ONrTLBFsM7IoKWNvmy5g==", "dependencies": { "markdown-it": "14.1.0", - "markdownlint-micromark": "0.1.10" + "markdownlint-micromark": "0.1.12" }, "engines": { "node": ">=18" @@ -5593,10 +5592,9 @@ "link": true }, "node_modules/markdownlint-micromark": { - "version": "0.1.10", - "resolved": "https://registry.npmjs.org/markdownlint-micromark/-/markdownlint-micromark-0.1.10.tgz", - "integrity": "sha512-no5ZfdqAdWGxftCLlySHSgddEjyW4kui4z7amQcGsSKfYC5v/ou+8mIQVyg9KQMeEZLNtz9OPDTj7nnTnoR4FQ==", - "license": "MIT", + "version": "0.1.12", + "resolved": "https://registry.npmjs.org/markdownlint-micromark/-/markdownlint-micromark-0.1.12.tgz", + "integrity": "sha512-RlB6EwMGgc0sxcIhOQ2+aq7Zw1V2fBnzbXKGgYK/mVWdT7cz34fteKSwfYeo4rL6+L/q2tyC9QtD/PgZbkdyJQ==", "engines": { "node": ">=18" }, diff --git a/package.json b/package.json index 10b53627d..8ef9979f3 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "js-yaml": "^4.1.0", "jsonc-parser": "~3.3.1", "jsonpointer": "5.0.1", - "markdownlint": "~0.35.0", + "markdownlint": "~0.36.1", "minimatch": "~10.0.1", "run-con": "~1.3.2", "smol-toml": "~1.3.0"