markdownlint
Advanced tools
Comparing version 0.26.0 to 0.26.1
@@ -1129,5 +1129,5 @@ // @ts-check | ||
function expandTildePath(file, os) { | ||
const homedir = os && os.homedir(); | ||
const homedir = os && os.homedir && os.homedir(); | ||
return homedir ? file.replace(/^~($|\/|\\)/, `${homedir}$1`) : file; | ||
} | ||
module.exports.expandTildePath = expandTildePath; |
{ | ||
"name": "markdownlint-rule-helpers", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "A collection of markdownlint helper functions for custom rules", | ||
"main": "helpers.js", | ||
"main": "./helpers.js", | ||
"exports": "./helpers.js", | ||
"author": "David Anson (https://dlaa.me/)", | ||
@@ -7,0 +8,0 @@ "license": "MIT", |
@@ -7,2 +7,2 @@ // @ts-check | ||
module.exports.homepage = "https://github.com/DavidAnson/markdownlint"; | ||
module.exports.version = "0.26.0"; | ||
module.exports.version = "0.26.1"; |
@@ -19,3 +19,6 @@ // @ts-check | ||
function convertHeadingToHTMLFragment(inline) { | ||
const inlineText = inline.children.map((token) => token.content).join(""); | ||
const inlineText = inline.children | ||
.filter((token) => token.type !== "html_inline") | ||
.map((token) => token.content) | ||
.join(""); | ||
return "#" + encodeURIComponent( | ||
@@ -81,3 +84,3 @@ inlineText | ||
} | ||
addError(onError, lineNumber, null, context, range); | ||
addError(onError, lineNumber, undefined, context, range); | ||
} | ||
@@ -84,0 +87,0 @@ }); |
{ | ||
"name": "markdownlint", | ||
"version": "0.26.0", | ||
"version": "0.26.1", | ||
"description": "A Node.js style checker and lint tool for Markdown/CommonMark files.", | ||
"type": "commonjs", | ||
"main": "lib/markdownlint.js", | ||
"types": "lib/markdownlint.d.ts", | ||
"main": "./lib/markdownlint.js", | ||
"exports": { | ||
".": "./lib/markdownlint.js", | ||
"./helpers": "./helpers/helpers.js" | ||
}, | ||
"types": "./lib/markdownlint.d.ts", | ||
"author": "David Anson (https://dlaa.me/)", | ||
@@ -9,0 +13,0 @@ "license": "MIT", |
@@ -1022,2 +1022,3 @@ # markdownlint | ||
improve performance, update dependencies. | ||
* 0.26.1 - Improve MD051. | ||
@@ -1024,0 +1025,0 @@ [npm-image]: https://img.shields.io/npm/v/markdownlint.svg |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
514292
10910
1028