commonmark / cmark

CommonMark parsing and rendering library and program in C
Other
1.62k stars 539 forks source link

Possibly incorrect start and end columns #551

Closed georgemp closed 3 weeks ago

georgemp commented 1 month ago

Source text **is* is parsed as (node with start and end columns)

document 1:5
paragraph 1:5
text 1:2
emph 1:5
text 3:4

I would have expected the first text node * to have locations 1:1 and the emphasis node *is* to have location 2:5. The computed source locations however seem to be translating to ** and **is*. I'm assuming this is a bug?

Edit: I did see a couple of other similar issues with inline source positions. Created this one to track an additional scenario. If you'd rather I add this as a comment to one of the other issues, do let me know. Thanks