mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Update previous commit for MD051/link-fragments to rename, refactor, add support for HTML anchors, and validate against
markdown-link-check (fixes #253).
This commit is contained in:
parent
33ee1cd85e
commit
db5d9f6dbb
21 changed files with 355 additions and 181 deletions
|
|
@ -105,10 +105,7 @@ test.cb("projectFilesInlineConfig", (t) => {
|
|||
t.plan(2);
|
||||
const options = {
|
||||
"files": [ "doc/Rules.md" ],
|
||||
"config": {
|
||||
"no-inline-html": false,
|
||||
...require("../.markdownlint.json")
|
||||
}
|
||||
"config": require("../.markdownlint.json")
|
||||
};
|
||||
markdownlint(options, function callback(err, actual) {
|
||||
t.falsy(err);
|
||||
|
|
@ -491,10 +488,11 @@ test.cb("styleAll", (t) => {
|
|||
"MD042": [ 81 ],
|
||||
"MD045": [ 85 ],
|
||||
"MD046": [ 49, 73, 77 ],
|
||||
"MD047": [ 96 ],
|
||||
"MD047": [ 98 ],
|
||||
"MD048": [ 77 ],
|
||||
"MD049": [ 90 ],
|
||||
"MD050": [ 94 ]
|
||||
"MD050": [ 94 ],
|
||||
"MD051": [ 96 ]
|
||||
}
|
||||
};
|
||||
// @ts-ignore
|
||||
|
|
@ -536,10 +534,11 @@ test.cb("styleRelaxed", (t) => {
|
|||
"MD042": [ 81 ],
|
||||
"MD045": [ 85 ],
|
||||
"MD046": [ 49, 73, 77 ],
|
||||
"MD047": [ 96 ],
|
||||
"MD047": [ 98 ],
|
||||
"MD048": [ 77 ],
|
||||
"MD049": [ 90 ],
|
||||
"MD050": [ 94 ]
|
||||
"MD050": [ 94 ],
|
||||
"MD051": [ 96 ]
|
||||
}
|
||||
};
|
||||
// @ts-ignore
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue