Wondering what’s next for npm?Check out our public roadmap! »

    remark-lint-double-link

    0.1.3 • Public • Published

    remark-lint-double-link

    This remark-lint rule ensures that there will be no duplicate links URL in the list

    Actions Statusnodenpm versionDependency StatusXO code styleCoveralls status

    npm downloadsnpm

    Why?

    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)

    Using the rule

    Via .remarkrc

    npm install -g remark-cli
    npm install remark-lint remark-lint-alphabetize-lists

    Then, set up your .remarkrc:

    {
      "plugins": [
        "lint",
        "lint-double-link"
      ]
    }

    Now you can use the following command to run the lint:

    remark xxx.md

    Via CLI

    npm install -g remark-cli
    npm install remark-lint remark-lint-double-link
    remark -u lint -u lint-double-link xxx.md

    Install

    npm i remark-lint-double-link

    DownloadsWeekly Downloads

    202

    Version

    0.1.3

    License

    MIT

    Unpacked Size

    11 kB

    Total Files

    14

    Last publish

    Collaborators

    • avatar