Reimplement MD038/no-space-in-code using micromark tokens.

This commit is contained in:
David Anson 2023-02-23 22:20:27 -08:00
parent b787758a48
commit 962547ecc8
6 changed files with 219 additions and 93 deletions

View file

@ -122,3 +122,18 @@ Again, 3 characters: ` abc `
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 ``` ` multiple leading {MD038}
spaces not allowed``` text
text ``trailing space
allowed for backtick ` `` text
text ``multiple trailing spaces
not allowed ` `` text {MD038}
text `` ` leading and trailing
space allowed for backtick ` `` text