Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

remark-validate-links

Package Overview
Dependencies
Maintainers
2
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

remark-validate-links - npm Package Compare versions

Comparing version 12.1.0 to 12.1.1

1

lib/check/validate.js

@@ -119,2 +119,3 @@ /**

/** @type {string} */
const suggestion = propose(hash ? hash : filePath, dictionary, {

@@ -121,0 +122,0 @@ threshold: 0.7

4

lib/find/find-references.js

@@ -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.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc