Reimplement MD037/no-space-in-emphasis using micromark tokens, report start/end separately for smaller edit spans, remove markdown-it-texmath (fixes #533, fixes #597).

This commit is contained in:
David Anson 2023-07-24 21:36:55 -07:00
parent e86fb7699d
commit 73b9704159
20 changed files with 1784 additions and 2502 deletions

View file

@ -125,32 +125,51 @@ Uncommon scenarios from the CommonMark specification (and some variations):
*in emph **strong***
*** strong emph*** {MD037}
*** strong** in emph* {MD037}
*** emph* in strong** {MD037}
*** strong** in emph* {possible MD037}
*** emph* in strong** {possible MD037}
** in strong *emph*** {MD037}
***strong emph *** {MD037}
***strong** in emph * {MD037}
***emph* in strong ** {MD037}
**in strong *emph *** {MD037}
*in emph **strong *** {MD037}
**in strong *emph *** {possible MD037}
*in emph **strong *** {possible MD037}
** *strong emph*** {MD037}
** *strong** in emph* {MD037}
** *emph* in strong** {MD037}
**in strong * emph*** (internal spaces are not detected)
*in emph ** strong*** (internal spaces are not detected)
***strong emph* ** {MD037}
***strong ** in emph* (internal spaces are not detected)
***emph * in strong** (internal spaces are not detected)
**in strong *emph* ** {MD037}
*in emph **strong* ** {MD037}
Text *emph***strong** text
Text * emph***strong** text {MD037}
Text *emph ***strong** text (internal spaces are not detected)
Text *emph*** strong** text (internal spaces are not detected)
Text *emph ***strong** text {MD037}
Text *emph*** strong** text {MD037}
Text *emph***strong ** text {MD037}
```markdown