Skip to content

v1.0.0

Compare
Choose a tag to compare
@pbodnar pbodnar released this 14 Jan 20:25
· 90 commits to master since this release

WARNING - Backwards compatibility changes:

  • #167: For practical reasons and for following common packaging practices, contrib folder got moved under the mistletoe folder / package. So if you reference a renderer from that folder, you need to reference it as mistletoe.contrib.<renderer> now.
  • See "change handling of (white)space characters in code spans" below. We keep processing extra whitespace characters at the parsing level, so that all renderers can benefit from it out-of-the-box. Provided that a custom renderer, for whatever reason, relied on all the spaces being collapsed, it needs to do that collapsing itself now (e.g. ' '.join(re.split('[ \n]+', content.strip())), or re.sub('[ \n]+', ' ', content.strip())).

Added:

  • JIRARenderer: Support link title notation, i.e. [label](url "title") gets transformed to [label|url|title] (#161)

Fixed:

  • Make the traverse() function actually work with various input parameters:
  • Compatibility with the latest CommonMark specification v0.30 (#108):
  • Make parsing of link reference definitions (a.k.a. Footnotes) more strict - spec compliant (#132)
  • Fix handling of special punctuation characters when parsing emphasis (#96, #175)

Updated:

  • Smaller inner working refactorings, like #171.