Skip to content

Releases: kivikakk/comrak

v0.27.0

20 Aug 09:17
7ff5110
Compare
Choose a tag to compare

Diff: v0.26.0...v0.27.0

v0.26.0

12 Jul 16:58
415f527
Compare
Choose a tag to compare
  • Restore inline sourcepos as experimental. by @kivikakk in #444
    • This is needed by some downstream users, so we re-introduce it, with a clearly labelled option.

Diff: v0.25.0...v0.26.0

v0.25.0

12 Jul 10:01
ae113bf
Compare
Choose a tag to compare
  • Discord-flavored Markdown by @Meow and @liamwhite in #421
    • Three new extensions and two render options are added:
      • extension.underline adds support for __underlined__ text.
      • extension.spoiler adds support for ||spoiler|| text.
      • extension.greentext adds support for image board-style >greentext, which isn't transformed into a blockquote.
      • render.ignore_setext disables parsing setext-style headings.
      • render.ignore_empty_links causes links with no text (like [](xyz)) to remain in the text as-is.
  • nodes: add From impls for AstNode. by @kivikakk in #424
    • Back by popular demand: AstNode::from(NodeValue).
    • Also added is AstNode::from(Ast), if you have sourcepos.
  • AST validation by @yannham in #425
    • The AST is validated when formatting a document as CommonMark in debug builds.
  • Address autolink edge cases. by @kivikakk in #426
    • Autolinks had many edge cases where output differed from upstream cmark-gfm. These have been fixed by following upstream's parser design closely.
  • shortcodes: capture all known aliases. by @kivikakk in #427
    • We didn't parse shortcodes containing numbers or +. We do now.
  • Support both upstream CommonMark and GFM's differences in the base spec. by @kivikakk in #428
    • GFM modifies even base CommonMark output somewhat. We now support and validate against both.
  • cm: count ol items from start of each list. by @kivikakk in #429
    • Ordered list item numbers are normalised on formatting back to CommonMark.
  • arena_tree: panic if iterator invalidation causes trouble. by @kivikakk in #437
    • arena_tree would silently stop iteration when trying to proceed from a child that had lost its parent. It now panics instead, as the old behaviour is incorrect and impossible to notice.
  • broken reflink callback updates & big cleanup. by @kivikakk in #438
    • The broken reference link callback has been moved into ParseOptions (which now takes a lifetime, meaning Options does too).
    • The callback now takes a struct containing both the normalised reference, and the original text, and the return value has changed from a 2-tuple to a struct for clarity.
    • parse_document_with_broken_link_callback has been marked deprecated.
  • Inline sourcepos fixes. by @kivikakk in #439
    • Inline sourcepos was provided on a best-effort basis, but there are multiple correctness issues which can't be fixed without significant work.
    • Inline sourcepos is no longer reported in HTML output. It remains in the AST and in XML output, but it is not reliable. See the PR for details.
    • Link sourcepos is slightly better than it was when it spans multiple lines.

New Contributors

Diff: v0.24.1...v0.25.0

v0.24.1

19 May 16:56
695e14b
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.23.0...v0.24.1

v0.23.1-pre.3

01 May 20:06
Compare
Choose a tag to compare

v0.23.1-pre.2

01 May 19:58
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.23.0...v0.23.1-pre.2

0.23.0

29 Apr 14:51
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.22.0...0.23.0

0.22.0

29 Mar 23:19
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: 0.21.0...0.22.0

0.21.0

25 Jan 10:46
Compare
Choose a tag to compare

What's Changed

Full Changelog: 0.20.0...0.21.0

0.20.0

29 Nov 05:03
Compare
Choose a tag to compare

What's Changed

  • build(deps): bump rustix from 0.36.11 to 0.36.16 in /fuzz by @dependabot in #346
  • Use Nix for CI. by @charlottia in #338
  • Allow for Syntect to simply generate CSS classes by @gjtorikian in #347

New Contributors

  • @charlottia made their first contribution in #338

Full Changelog: 0.19.0...0.20.0