miyuchina / mistletoe

A fast, extensible and spec-compliant Markdown parser in pure Python.
MIT License
791 stars 110 forks source link

fix(markdown-renderer): preserve list margin spacing #215

Closed nijel closed 2 months ago

nijel commented 3 months ago

The extra spacing can be before of after leader, so try to preserve it on both positions.

Fixes #213

coveralls commented 2 months ago

Coverage Status

coverage: 94.207% (+0.009%) from 94.198% when pulling 207b67582600bdada839df093423ab3074383ac0 on nijel:preserve-list-spacing into 06f2a937e285345a15a846fe2114d8f549c9ea84 on miyuchina:master.

pbodnar commented 2 months ago

@nijel, thanks for your PR! I've found some small details and fixed them right away - can you please review my commit and squash it to your original commit if you find it OK?

nijel commented 2 months ago

Looks good, I've just squashed that.