commonmark / cmark

CommonMark parsing and rendering library and program in C
Other
1.63k stars 546 forks source link

Fix list tightness #479

Open taku0 opened 1 year ago

taku0 commented 1 year ago

This is a port of https://github.com/commonmark/commonmark.js/pull/269.

Comments for each commits (feel free to squash them):

Benchmark:

taku0 commented 1 year ago

Actually, this branch set end columns more accurately than https://github.com/commonmark/commonmark.js/pull/269 for corner cases. I will update commonmark.js when this PR is merged.

taku0 commented 1 year ago

make leakcheck fails but it also fails on the master branch with same errors.

jgm commented 1 year ago

Excellent! What errors is make leakcheck failing with? We routinely run it as part of CI and it doesn't fail there. EDIT: Ah, I see the failures in CI. But the last commit from master succeeds on that same check...

taku0 commented 1 year ago

Sorry, I forget to make after switching the branch. I'll investigate the leak.

taku0 commented 1 year ago

I have fixed the leak and the CI is now all green.