commonmark / cmark

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

Fix quadratic behavior involving get_containing_block #433

Closed nwellnhof closed 2 years ago

nwellnhof commented 2 years ago

Fix quadratic behavior in the Commonmark renderer when determining the tight list status in deeply nested inlines.

Instead of searching for the containing block, update the tight list status when

Fixes #431.