Skip to content

Commit

Permalink
Include custom rule markdownlint-rule-github-internal-links when vali…
Browse files Browse the repository at this point in the history
…dating project Markdown files.
  • Loading branch information
DavidAnson committed Dec 23, 2021
1 parent 5f00406 commit 9ec14f1
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ const results = window.markdownlint.sync(options).toString();
## Examples

For ideas how to integrate `markdownlint` into your workflow, refer to the
following projects or one of the tools in the [Related section](#Related):
following projects or one of the tools in the [Related section](#related):

* [.NET Documentation](https://docs.microsoft.com/en-us/dotnet/) ([Search repository](https://github.com/dotnet/docs/search?q=markdownlint))
* [ally.js](https://allyjs.io/) ([Search repository](https://github.com/medialize/ally.js/search?q=markdownlint))
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@
"markdown-it-sub": "~1.0.0",
"markdown-it-sup": "~1.0.0",
"markdown-it-texmath": "~0.9.7",
"markdownlint-rule-github-internal-links": "~0.1.0",
"markdownlint-rule-helpers": "~0.15.0",
"npm-run-all": "~4.1.5",
"strip-json-comments": "~3.1.1",
Expand Down
5 changes: 3 additions & 2 deletions test/markdownlint-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -84,11 +84,12 @@ test.cb("projectFilesNoInlineConfig", (t) => {
"doc/Prettier.md",
"helpers/README.md"
],
"noInlineConfig": true,
"config": {
"line-length": { "line_length": 150 },
"no-duplicate-heading": false
}
},
"customRules": [ require("markdownlint-rule-github-internal-links") ],
"noInlineConfig": true
};
markdownlint(options, function callback(err, actual) {
t.falsy(err);
Expand Down

0 comments on commit 9ec14f1

Please sign in to comment.