flexmark-java icon indicating copy to clipboard operation
flexmark-java copied to clipboard

ListBlock does not include whitespaces after an item's empty opening marker

Open saket opened this issue 3 years ago • 0 comments

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.

saket avatar Aug 04 '22 21:08 saket