Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
mistletoe-1.2.0-py3-none-any.whl | 2023-08-21 | 50.1 kB | |
README.md | 2023-08-21 | 1.3 kB | |
v1.2.0 source code.tar.gz | 2023-08-21 | 118.4 kB | |
v1.2.0 source code.zip | 2023-08-21 | 151.4 kB | |
Totals: 4 Items | 321.2 kB | 0 |
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
tofalse
if you need the old behavior. PygmentsRenderer
no longer throws aClassNotFound
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 passfail_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.