Update MD034/no-bare-urls to report multiple instances on the same line.

This commit is contained in:
David Anson 2019-09-22 21:31:02 -07:00
parent a75f1ecf2a
commit 737126cf93
5 changed files with 37 additions and 23 deletions

View file

@ -24,3 +24,5 @@ Code https://example.com/code?type=fence code
Text <https://example.com/same> more text https://example.com/same still more text <https://example.com/same> done
Text <https://example.com/same> more \* text https://example.com/same more \[ text <https://example.com/same> done
Text https://example.com/first more text https://example.com/second still more text https://example.com/third done

View file

@ -24,3 +24,5 @@ Code https://example.com/code?type=fence code
Text <https://example.com/same> more text <https://example.com/same> still more text <https://example.com/same> done
Text <https://example.com/same> more \* text https://example.com/same more \[ text <https://example.com/same> done
Text <https://example.com/first> more text <https://example.com/second> still more text <https://example.com/third> done

View file

@ -88,5 +88,14 @@
"errorDetail": null,
"errorContext": "https://example.com/same",
"errorRange": null
},
{
"lineNumber": 28,
"ruleNames": [ "MD034", "no-bare-urls" ],
"ruleDescription": "Bare URL used",
"ruleInformation": "https://github.com/DavidAnson/markdownlint/blob/v0.0.0/doc/Rules.md#md034",
"errorDetail": null,
"errorContext": "https://example.com/first",
"errorRange": [ 6, 25 ]
}
]