miyuchina / mistletoe

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

fix: Make limiting depth in traverse() actually work #159

Closed asb closed 2 years ago

asb commented 2 years ago

Due to a typo (inverted comparison), the test for the traversal depth would always fail. Fix that typo and add test coverage.

asb commented 2 years ago

Thanks, typo fixed.

pbodnar commented 2 years ago

Merged, thank you!