Update MD039/no-space-in-links to report separate errors for start and end spaces (more granular; avoids conflicts).

This commit is contained in:
David Anson 2024-08-04 13:05:32 -07:00
parent daa155d5a1
commit a6cf08dfc6
5 changed files with 990 additions and 270 deletions

File diff suppressed because it is too large Load diff

View file

@ -48,11 +48,32 @@ function MoreCodeButNotCode(input) {
[with](spaces)
[error ]({MD039})
Wrapped [ link with leading space {MD039}
](https://example.com)
Non-wrapped [ link with leading space](https://example.com) {MD039}
Non-wrapped [link with trailing space ](https://example.com) {MD039}
Non-wrapped [ link with leading and trailing space ](https://example.com) {MD039}
Wrapped [
link with leading space](https://example.com) {MD039}
Wrapped [
link with leading space](https://example.com) {MD009:-1} {MD039:-1}
Wrapped [link with trailing space
](https://example.com) {MD009:-1} {MD039:-1}
Wrapped [link with trailing space
](https://example.com) {MD039}
Wrapped [
link with leading and trailing space
](https://example.com) {MD009:-2} {MD039:-2} {MD039}
Wrapped [
link with leading and trailing space
](https://example.com) {MD009:-1} {MD039:-1}
[][ref]
[link][ref]