Add support to MD011 for Markdown Extra-style footnotes (fixes #18).

This commit is contained in:
David Anson 2016-06-24 23:13:00 -07:00
parent cfef715ed3
commit 83639b8ef8
3 changed files with 17 additions and 1 deletions

View file

@ -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);
}
});