Skip to content

Releases: miyuchina/mistletoe

v0.5.2

30 Jan 18:33
Compare
Choose a tag to compare

Fixed:

  • contrib/md2jira.py was importing from the wrong directory (#20, thanks to @cctile);
  • characters in LaTeX lstlisting environment should not be escaped (#23, thanks to @liuq).

v0.5.1

24 Jan 17:44
Compare
Choose a tag to compare

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 into contrib (thanks to @huettenhain);

Lastly, I miss cheeseburgers. 🍔

Version 0.5 Ginger House

09 Jan 03:46
Compare
Choose a tag to compare

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 serialize FootnoteAnchor.

Where I broke backwards compatibility:

  • BlockToken now has start and read methods, instead of match method. This allows for much more granular control of parsing when defining custom block-level tokens.
  • Heading and SetextHeading are now different token classes, though their renderer functions are still the same.
  • CodeFence and BlockCode 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

25 Dec 05:54
Compare
Choose a tag to compare

Features:

  • added support for empty or self-closing HTMLSpan;
  • added --renderer flag for command line usage;
  • token.children now has idempotent behavior!

Development:

  • refactored command line functionalities;
  • testing and error handling.

Merry Christmas! 🎄

Version 0.4 Butterbeer

18 Nov 15:49
Compare
Choose a tag to compare

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

01 Sep 20:03
Compare
Choose a tag to compare

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

27 Aug 08:46
Compare
Choose a tag to compare

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

14 Aug 02:24
Compare
Choose a tag to compare

Features:

  • added table-of-contents plugin;
  • added rudimentary MathJax support in mathjax plugin;

Fixed:

  • mistletoe crashes with text between underscores;
  • incorrect handling of hashes in code blocks;

Relicensed under MIT.

Version 0.2 Reindeer

07 Aug 04:22
Compare
Choose a tag to compare

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

26 Jul 11:32
Compare
Choose a tag to compare
Version 0.1 Snowman Pre-release
Pre-release

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!