mirror of
https://github.com/DavidAnson/markdownlint.git
synced 2025-12-16 14:00:13 +01:00
Update MD037/no-space-in-emphasis to avoid crash, handle more scenarios.
This commit is contained in:
parent
a0afba972c
commit
5c60e00a90
3 changed files with 58 additions and 24 deletions
|
|
@ -115,13 +115,42 @@ This is * an ambiguous * scenario {MD037}
|
|||
with *space * problems {MD037}
|
||||
throughout * the * content {MD037}
|
||||
|
||||
Uncommon scenarios from the CommonMark specification:
|
||||
Uncommon scenarios from the CommonMark specification (and some variations):
|
||||
***strong emph***
|
||||
***strong** in emph*
|
||||
***emph* in strong**
|
||||
**in strong *emph***
|
||||
*in emph **strong***
|
||||
|
||||
*** strong emph*** {MD037}
|
||||
*** strong** in emph* {MD037}
|
||||
*** emph* in strong** {MD037}
|
||||
** in strong *emph*** {MD037}
|
||||
|
||||
***strong emph *** {MD037}
|
||||
***strong** in emph * {MD037}
|
||||
***emph* in strong ** {MD037}
|
||||
**in strong *emph *** {MD037}
|
||||
*in emph **strong *** {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}
|
||||
|
||||
```markdown
|
||||
Violations * are * allowed in code blocks where emphasis does not apply.
|
||||
```
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue