mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-09-21 21:30:47 +02:00
Include custom rule markdownlint-rule-github-internal-links when validating project Markdown files.
This commit is contained in:
parent
5f0040679d
commit
9ec14f13a1
3 changed files with 5 additions and 3 deletions
|
@ -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))
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue