Skip to content

v1.2.0

Compare
Choose a tag to compare
@pbodnar pbodnar released this 21 Aug 07:11
· 38 commits to master since this release

Fixed

  • FileWrapper's methods anchor/reset are DEPRECATED, use a more versatile get_pos/set_pos approach instead (#186).
  • LaTeXRenderer: Escape special characters in URLs of generated links (#114 via #190).

Changed

  • Do not escape double or single quotes by default (#181).
  • As in GFM, tables are allowed to interrupt paragraphs by default (#166 via #187). Set mistletoe.block_token.Table.interrupt_paragraph to false if you need the old behavior.
  • PygmentsRenderer no longer throws a ClassNotFound error if there is a code language specified which is not supported by the Pygments highlighter (#183). If you still need to get the error, simply pass fail_on_unsupported_language=True to the renderer's constructor.
  • Use strict PascalCase for class names (#182). The old names like HTMLRenderer are marked as deprecated.

For contributors:

  • Unify assertEqual() calls in all the tests (#185).
  • Starting to use requirements.txt.
  • Scheme renderer's __main__ section turned into a proper unit test (#189).
  • The possibility of a block token to interrupt a paragraph was generalized (#187). A token class just needs to define the check_interrupts_paragraph(cls, lines) -> bool method.