Repository navigation
Commit afbb27c
authored
fix: allow tabs in the thematic break that ends a list item (#4087)
CommonMark 0.31.2 says each -, _, or * of a thematic break may be
followed by any number of spaces or tabs, but the hrRegex that closes a
list item allowed spaces only, so a break written with tabs was taken as
paragraph continuation instead. "- foo" followed by a line of
underscores separated by tabs put the hr inside the list item, and
"- foo" followed by "---" plus a tab turned foo into a setext heading.
The block hr rule already allows tabs; this makes the list item check
agree with it.1 parent aed9336 commit afbb27c
3 files changed
Lines changed: 24 additions & 1 deletion
File tree
- src
- test/specs/new
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
93 | 93 | | |
94 | 94 | | |
95 | 95 | | |
96 | | - | |
| 96 | + | |
97 | 97 | | |
98 | 98 | | |
99 | 99 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
0 commit comments