Skip to content

v0.42.0

Choose a tag to compare

@kivikakk kivikakk released this 24 Sep 07:14
· 334 commits to main since this release
8919b6d

New APIs:

  • cm::escape_inline (aliased at crate level as escape_commonmark_inline) is added; escapes input text suitable for inclusion in a CommonMark document where regular inline processing takes place. (by @kivikakk in #602)
  • cm::escape_link_destination (aliased at crate level as escape_commonmark_link_destination) is added; escapes input URL suitable for use as a link destination in a CommonMark document. (by @kivikakk in #605)

Changed APIs:

  • html::collect_text now returns a String. html::collect_text_append is added if you still want to start with your own (String) buffer. (by @kivikakk in #600)
    • There was no particular reason for this populating a Vec<u8> instead of a String; it was just old.
  • Anchorizer::anchorizer now takes &str instead of a String. (by @kivikakk in #603)
    • As above.

Updates:

  • Update is_cjk in CJK Friendly Emphasis to Unicode 17. (by @tats-u in #598)

Behind the scenes:

Diff: v0.41.1...v0.42.0