v1.3.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 (fb231b1).
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 calledindentation
(number of spaces before the item marker):-def __init__(self, parse_buffer, prepend, leader): +def __init__(self, parse_buffer, indentation, prepend, leader):
- The old behavior can be enforced by passing
For contributors:
- Improvements in the Python styling checks, setup and documentation - see diff.