mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-17 06:20:12 +01:00
Add support to MD011 for Markdown Extra-style footnotes (fixes #18).
This commit is contained in:
parent
cfef715ed3
commit
83639b8ef8
3 changed files with 17 additions and 1 deletions
|
|
@ -327,7 +327,7 @@ module.exports = [
|
|||
"aliases": [ "no-reversed-links" ],
|
||||
"func": function MD011(params, errors) {
|
||||
forEachInlineChild(params, "text", function forToken(token) {
|
||||
if (/\([^)]+\)\[[^\]]+\]/.test(token.content)) {
|
||||
if (/\([^)]+\)\[[^\]^][^\]]*\]/.test(token.content)) {
|
||||
errors.push(token.lineNumber);
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue