package
Remark plugin lint double link
npm install remark-lint-double-linkGitHub-flavored package documentation.
Across all versions.
Download trend unavailable.
Runtime metadata.
Tagged topics.
This remark-lint rule ensures that there will be no duplicate links
URLin the list
Checks only duplicate URL, which helps to get rid of duplicates with the same link names or with different ones.
The main policy is not to duplicate links to the same resources
<!-- Invalid -->
[link-1](http://link-1)
[link-2](http://link-1)
<!-- Valid -->
[link](http://link-1).remarkrcnpm install -g remark-cli
npm install remark-lint remark-lint-alphabetize-listsThen, set up your .remarkrc:
{
"plugins": [
"lint",
"lint-double-link"
]
}Now you can use the following command to run the lint:
remark xxx.mdnpm install -g remark-cli
npm install remark-lint remark-lint-double-link
remark -u lint -u lint-double-link xxx.mdEstimated unpacked size across 15 packages.
611.2 kB
Includes dependencies.
^5.1.0
10.0.0
^4.1.2
5.2.0
^2.1.1
3.0.1