Skip to content

v1.3.0

Compare
Choose a tag to compare
@pbodnar pbodnar released this 21 Jan 16:18
· 19 commits to master since this release

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 pass process_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 called indentation (number of spaces before the item marker):
      -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.