Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
mistletoe-1.3.0-py3-none-any.whl | 2024-01-21 | 51.0 kB | |
README.md | 2024-01-21 | 1.6 kB | |
v1.3.0 source code.tar.gz | 2024-01-21 | 121.7 kB | |
v1.3.0 source code.zip | 2024-01-21 | 155.5 kB | |
Totals: 4 Items | 329.9 kB | 0 |
Added
- Add line numbers (
line_number
attribute) on all block tokens during parsing (#188). - More thorough documentation and explanation of AST and tokens in the Developer's Guide (within [#188]).
HtmlRenderer
: Option to skip HTML tokens parsing (#74 via [#204]). Just passprocess_html_tokens=False
to the renderer's constructor.LaTeXRenderer
: Add AMS packages for Math (#207).
Fixed
MarkdownRenderer
: Penultimate lines of multiline fragments being ignored (#201).MathJaxRenderer
: Output inline math (in:$...$
) correctly (out:\(...\)
) (#195).- Make local installation work again with pip 23.2 and above (fb231b112ea5).
Changed
MarkdownRenderer
: Keep the original content spacing after the list marker (#196 via [#197]).
COMPATIBILITY REMARKS:
* The old behavior can be enforced by passing normalize_whitespace=True
to the renderer's constructor (#202).
* Provided you create ListItem
's tokens directly via its constructor, you need to pass it a new parameter called indentation
(number of spaces before the item marker):
diff
-def __init__(self, parse_buffer, prepend, leader):
+def __init__(self, parse_buffer, indentation, prepend, leader):
- Allow just 1 dash in Table delimiter cells (#131 via [#203]).
For contributors:
- Improvements in the Python styling checks, setup and documentation - see diff.