Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
FIX listitem bullet without whitespace (markedjs#1980)
This makes marked render correctly with the following text: ```markdown - item1 - item2 -Not a list item(without space) - item3 ``` Currently: ```html <ul> <li>item1</li> <li>item2</li> </ul> <p>-Not a list item(without space)</p> <ul> <li>item3</li> </ul> ``` Which should be: ```html <ul> <li>item1</li> <li>item2 -Not a list item(without space)</li> <li>item3</li> </ul> ``` This is the rendered result for commonmark as well. Changes: - `nextBulletRegex` checks for whitespace after the bullet - separately checks for hr or lheading
- Loading branch information