mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add short links to each rule in Rules.md, update README.md to use them (fixes #54).
This commit is contained in:
parent
da529ac286
commit
b436640918
5 changed files with 133 additions and 43 deletions
|
|
@ -968,7 +968,8 @@ module.exports.readme = function readme(test) {
|
|||
test.ok(rule,
|
||||
"Missing rule implementation for " + token.content + ".");
|
||||
if (rule) {
|
||||
var expected = "**" + rule.name + "** *" +
|
||||
var expected = "**[" + rule.name + "](doc/Rules.md#" +
|
||||
rule.name.toLowerCase() + ")** *" +
|
||||
rule.aliases.join(", ") + "* - " + rule.desc;
|
||||
test.equal(token.content, expected, "Rule mismatch.");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue