Open NightFlyer opened 5 years ago
Thanks! I'll fix this up. I really appreciate the bug reports and PRs. :heart:
This turns out to be much more complicated than I anticipated, so unfortunately it has to go on the backburner until I get a better block of free time.
If you have something like:
Then I think that you should get the same result when calling
cmark_render_commonmark
whether or not the tasklist extension is enabled. Now, however, if the tasklist extension isn't enabled, you get items that match up appropriately, but if the tasklist extension is enabled, you get items that don't line up:The code in
S_render_node
for CMARK_NODE_ITEM puts in a different amount of spaces in the beginning of the line than the code in the tasklist extension, so the hypens don't line up.