Lexer: Space after list appears in last list_item #1947
Labels
category: lists
L2 - annoying
Similar to L1 - broken but there is a known workaround available for the issue
released
marked 2.0.0
Sorry if it is not a bug, but a feature...
In a semantic tree (marked.lexer) an empty space between List and Paragraph appears in a last
list_item
. It looks unlogical.While traverse the tree, you should write additional code for exclude this empty space from
list_item
. And then write code to add space between List and Paragraph.Expected: Space node should be at the first level of the semantic tree, between the List and the next Paragraph
for reproduce, please visit:
https://codesandbox.io/s/markedjs-klt1h?file=/src/marked8lexer.js
The text was updated successfully, but these errors were encountered: