Releases: miyuchina/mistletoe
Releases · miyuchina/mistletoe
v0.5.2
v0.5.1
Features:
- added JIRA Markdown support (thanks to @cctile);
Strong
/Emphasis
elements must open with non-whitespace characters;- no more than 6 levels of
Heading
;
Fixed:
render_table
crashing when iterating token.children (#12);FootnoteLink
engulfing trailing spaces (#14);Paragraph.read
not stopping before CodeFence (#15);
Development:
- added testing for CommonMark compliance;
- merged
plugins
directory intocontrib
(thanks to @huettenhain);
Lastly, I miss cheeseburgers. 🍔
Version 0.5 Ginger House
Features:
BlockToken
is a hell lot more flexible now;add_token
accepts an additional position argument;- Newlines are now preserved in
Paragraph
tokens.
Fixed:
ASTRenderer
fails to serializeFootnoteAnchor
.
Where I broke backwards compatibility:
BlockToken
now hasstart
andread
methods, instead ofmatch
method. This allows for much more granular control of parsing when defining custom block-level tokens.Heading
andSetextHeading
are now different token classes, though their renderer functions are still the same.CodeFence
andBlockCode
are now different token classes, though their renderer functions are still the same.
What has been in my life for the past few weeks:
❄️
v0.4.1
Version 0.4 Butterbeer
Features:
- removed argument
footnotes
from render functions; - make custom tokens usable without invoking renderer as context manager (#5).
Development:
- documentation updates and bug fixes (more to come!);
- refactoring and slight performance gains.
Now for a beer emoji: 🍺
v0.3.1
Features:
- auto-closes unclosed code fences;
- adds support for "[footnote]"-style links;
- interactive mode adds keyboard control support;
- accepts multiple filenames from the command line.
Fixed:
render_image
function missing argument;- mistletoe crashes with empty list items;
- removes redundant whitespace for empty lines in code fences;
- fixed performance issues on PyPy: very, very fast now.
Version 0.3 Fireplace
Features:
- span-level token constructors now accept match objects;
- simplified adding custom tokens to the parsing process;
- simplified creating new renderer classes.
Development:
- refactored (most of the) tests;
- cleaned up benchmarking script;
- cleaned up some spaghetti in tokenizer modules.
v0.2.1
Version 0.2 Reindeer
Features:
- added support for footnote-style images and links;
- added support for LaTeX renderer;
- renderer classes are now context managers (see README).
Development:
- added test suite for LaTeX renderer;
- added benchmarking script for performance comparison;
- added scripts to compare render output across commits;
- added CI testing for versions up to Python 3.3.
Fixed:
- a bunch of regex craziness;
- outdated documentation.
Version 0.1 Snowman
This release is mainly to celebrate that I shaved. Other than that:
Block-level token support:
- heading (ATX and setext);
- quote;
- paragraph;
- block code (code fence and indented code);
- lists and nested lists;
- tables;
- horizontal rule;
Span-level token support:
- strong (with asterisks or underscore);
- emphasis (with asterisks or underscore);
- inline code;
- strikethrough;
- images (inline link only);
- links (inline link only) and autolinks;
Output format support:
- render to HTML;
- render to mdast-like AST;
- render to really janky LaTeX;
Lastly, hello world!