flexmark-java
flexmark-java copied to clipboard
ListBlock does not include whitespaces after an item's empty opening marker
Describe the bug
When flexmark is used for parsing text such as 1. , its generated ListBlock does not include any whitespaces after 1. in its offsets. This becomes weird when flexmark is used in a text editor where a "paragraph span" is applied to the offsets specified by ListBlock. This causes the whitespace and, more importantly, the text cursor to move to the next line until non-whitespace characters are typed.
Could this be changed? Alternatively it could be great if ListItem could indicate expose its full content including any whitespaces.