JetBrains / markdown

Markdown parser written in kotlin
Apache License 2.0
706 stars 78 forks source link

[#135] Create nodes for cells with zero lengths #136

Closed berezhkoE closed 12 months ago

berezhkoE commented 1 year ago

Here GitHubTableMarkerBlock#fillCells nodes for cells and separators are created. And a node for a cell is created even if its length is zero. And then here TreeBuilder#constructEvents events are created, and for nodes with zero lengths, only one event is created (and not two as elsewhere). And then after sorting, these events are strangely located. Such a cell appears to be between the opening and closing of the separator. Therefore, I think that it is necessary to correct how these events are compared, specifically in the case of an empty event.