Mistletoe

Latest version: v1.3.0

Safety actively analyzes 626643 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 5

0.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 `&x27;` (see 115; let us know if you would need the old behavior)
* `BaseRenderer.__getattr__()` is removed and replaced by explicit `render_*()` 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. :)

0.8.2

**Fixed:**

* Support emphasized inline code (70)
* Failure to parse paragraph containing just "[" (130) (a side-effect of the fix of 124 in **v0.8.1**)
* IndexError when parsing unfinished-link-like text (98)

**Others:**

* Small documentation improvements.

0.8.1

**Added:**

* Documentation (122 - covering 56, 99 and some other basic topics)

**Fixed:**

* Avoid infinite loop when parsing specific Footnotes (124)
* Read and write to files / console in UTF-8 (in all remaining locations)

**Testing:**

* Benchmark tests made up-to-date (119)

0.8.0

**Added:**

* Support escaped pipes in table cells (85)
* `traverse()` function, to recursively yield children of a token (breadth-first traverse) (94)
* XWiki20Renderer - supports [XWiki](https://en.wikipedia.org/wiki/XWiki) syntax 2.0 (#113)

**Fixed:**

* JIRARenderer is basically ready for real life scenarios now
* Fixed output of empty lines in lists and others (100)
* Don't HTML-escape special chars (100)
* Fixed output of table headers (105)
* Escape special Jira chars (111)
* Fixed output of empty cells (109; see [JRASERVER-70048](https://jira.atlassian.com/browse/JRASERVER-70048))
* Read and write to files / console in **UTF-8**, so that UnicodeDecodeError-s and UnicodeEncodeError-s are avoided (100)
* Various Markdown parsing problems (86, 91)
* Removed over-escaping of URLs in HTML and Jira renderers (102)
* TOCRenderer: The resulting `toc` property is properly generated (88)
* LaTeXRenderer: Escape underscores and percentages + don't escape in inline code (93 / 112)

**Testing:**

* Don't limit diffs from `assertEquals`, so that all differences are visible (100)
* Introduced `filesBasedTest` decorator for simple tests via conventionally named test files (100)

0.7.2

**Fixed:**

* Fixed incorrect handling of loose list (54, 65, thanks Rogdham and Vallentin)
* Fixed `FileWrapper` backstep after `StopIteration` (58, thanks Rogdham)
* Allow more than one level of token subclass (62, thanks Rogdham)
* Tables can handle rows with missing columns (67, thanks Grollicus)
* Fixed unresolved reference (73, thanks Vallentin)
* Fixed EOL markers in LaTeX tables (79, thanks liuq)

**Testing:**

* Add Python 3.7 to integration testing (63, thanks nikolas)

0.7.1

**Fixed**:

* only matching the first instance of `InlineCode` (50, thanks huettenhain);
* normalize newlines after every line (51, thanks elebow and rsrdesarrollo);
* trailing characters after reference definition.

**Performance**:

* small speed boost to `ParseToken.append_child`.

Page 2 of 5

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.