remark-validate-links
Advanced tools
Comparing version 12.1.0 to 12.1.1
@@ -119,2 +119,3 @@ /** | ||
/** @type {string} */ | ||
const suggestion = propose(hash ? hash : filePath, dictionary, { | ||
@@ -121,0 +122,0 @@ threshold: 0.7 |
@@ -79,3 +79,5 @@ /** | ||
if (!id && node.type === 'heading') { | ||
id = slugs.slug(toString(node, {includeImageAlt: false})) | ||
id = slugs.slug( | ||
toString(node, {includeImageAlt: false, includeHtml: false}) | ||
) | ||
} | ||
@@ -82,0 +84,0 @@ |
@@ -1,10 +0,10 @@ | ||
/** | ||
* Plugin to validate that Markdown links and images reference existing local | ||
* files and headings. | ||
* | ||
* @type {import('unified').Plugin<[Options?, FileSet?]|[Options?]|void[], Root>} | ||
*/ | ||
export default function remarkValidateLinks( | ||
options: void | Options | undefined, | ||
fileSet: void | import('unified-engine/lib/file-set.js').FileSet | undefined | ||
this: import('unified').Processor<void, import('mdast').Root, void, void>, | ||
...settings: | ||
| void[] | ||
| [ | ||
(Options | undefined)?, | ||
(import('unified-engine/lib/file-set.js').FileSet | undefined)? | ||
] | ||
| [(Options | undefined)?] | ||
): | ||
@@ -11,0 +11,0 @@ | void |
{ | ||
"name": "remark-validate-links", | ||
"version": "12.1.0", | ||
"version": "12.1.1", | ||
"description": "remark plugin to validate links to headings and files", | ||
@@ -50,5 +50,5 @@ "license": "MIT", | ||
"@types/mdast": "^3.0.0", | ||
"github-slugger": "^1.0.0", | ||
"hosted-git-info": "^5.0.0", | ||
"mdast-util-to-string": "^3.0.0", | ||
"github-slugger": "^2.0.0", | ||
"hosted-git-info": "^6.0.0", | ||
"mdast-util-to-string": "^3.2.0", | ||
"propose": "0.0.5", | ||
@@ -63,3 +63,2 @@ "to-vfile": "^7.0.0", | ||
"devDependencies": { | ||
"@types/github-slugger": "^1.0.0", | ||
"@types/hast": "^2.0.0", | ||
@@ -78,5 +77,5 @@ "@types/hosted-git-info": "^3.0.0", | ||
"type-coverage": "^2.0.0", | ||
"typescript": "^4.0.0", | ||
"typescript": "^5.0.0", | ||
"vfile-sort": "^3.0.0", | ||
"xo": "^0.52.0" | ||
"xo": "^0.54.0" | ||
}, | ||
@@ -99,3 +98,6 @@ "scripts": { | ||
"xo": { | ||
"prettier": true | ||
"prettier": true, | ||
"rules": { | ||
"unicorn/prefer-logical-operator-over-ternary": "off" | ||
} | ||
}, | ||
@@ -102,0 +104,0 @@ "remarkConfig": { |
@@ -152,3 +152,3 @@ # remark-validate-links | ||
> ⚠️ **Important**: The API in Node.js checks links to headings and files but | ||
> whether headings in other files exist. | ||
> does not check whether headings in other files exist. | ||
> The API in browsers only checks links to headings in the same file. | ||
@@ -155,0 +155,0 @@ > The CLI can check everything. |
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
46712
16
966
+ Addedcross-spawn@7.0.3(transitive)
+ Addedgithub-slugger@2.0.0(transitive)
+ Addedhosted-git-info@6.1.1(transitive)
- Removedcross-spawn@7.0.5(transitive)
- Removedgithub-slugger@1.5.0(transitive)
- Removedhosted-git-info@5.2.1(transitive)
Updatedgithub-slugger@^2.0.0
Updatedhosted-git-info@^6.0.0
Updatedmdast-util-to-string@^3.2.0