Refactor MD038/no-space-in-code to produce smaller/simpler edits and address an additional scenario.

This commit is contained in:
David Anson 2025-02-07 20:03:30 -08:00
parent 656254e64f
commit b23fc96ab2
8 changed files with 699 additions and 610 deletions

View file

@ -54,6 +54,6 @@
`` `code `` (fixed)
`` `code` `` {Could be MD038}
`` `code` `` {MD038}
`` `code` `` (fixed)

File diff suppressed because it is too large Load diff

View file

@ -60,11 +60,11 @@ text and ``\`code with ignored escaped \` backticks``
` `` ` text `code`
``` ` leading space allowed for backtick``` text `code`
``` ` surrounding space allowed for backtick ``` text `code`
``` ` multiple leading spaces not allowed``` text `code` {MD038}
``trailing space allowed for backtick ` `` text `code`
`` surrounding space allowed for backtick ` `` text `code`
``multiple trailing spaces not allowed ` `` text `code` {MD038}
@ -126,13 +126,13 @@ Again, 2 characters: ` ab `
Again, 1 character: ` a `
Many internal spaces: ` code code code code code code `
text ``` ` leading space
allowed for backtick``` text
text ``` ` surrounding space
allowed for backtick ``` text
text ``` ` multiple leading {MD038}
spaces not allowed``` text
text ``trailing space
text `` surrounding space
allowed for backtick ` `` text
text ``multiple trailing spaces
@ -150,7 +150,7 @@ Code
Text
```
Code
Code {MD038}
```
Text
@ -160,7 +160,7 @@ Code
Text
```
Code
Code {MD038}
```
Text