v0.9.0
WARNING - Backwards compatibility changes:
- Python versions below 3.5 are no longer supported (Python 3.6 end-of-life: December 2021)
html
module (available since Python 3.4) is no longer included
- As unescaping of HTML character references (entities) is now correctly done in parsing phase already, prospective custom renderers should be altered accordingly provided they do the unescaping themselves now.
HTMLRenderer
: single quote is no longer rendered as'
, but as'
(see #115; let us know if you would need the old behavior)BaseRenderer.__getattr__()
is removed and replaced by explicitrender_*()
methods definitions for clearer API (#133)
Added:
- Add
__repr__()
methods to all token classes (#140) - Add type hints for HTMLRenderer methods (#133; supported since Python 3.0)
Fixed:
- Correctly unescape HTML character references (entities) for
LaTeXRenderer
- refactored globally (#135) - Ensure LaTeX renderer uses valid \verb delimiter - not always just
|
(#149) - GithubWiki unit test failing when run via
pytest
(#142)
Others:
- Simplify implementation of escaping special HTML characters (#135)
- Remove unused imports and variables (#146)
- Document (for maintainers) how to create a new mistletoe release
- Fix and extend docstring documentation of various token types (#154)
- This version is about 0,5% faster according to the benchmark test. :)