Releases: kivikakk/comrak
Releases · kivikakk/comrak
v0.30.0
- Add
task-list-item
class to task list items by @nicoburns in #468 - Add option for specifying a minimum width of ordered lists by @edwar4rd in #465
- Use
bon
for an infallible and compile-time-checked builder by @Veetaha in #466 - Add support for image and link URL rewriting by @liamwhite in #481
- Unwrap Mutex from broken_link_callback by @liamwhite in #484
- Prevent panic in format_item by @silverpill in #486
- Bump
bon
version to 3.0 by @Veetaha in #487 - Add support for subscript extension by @liamwhite in #488
- Add macro for character tables by @liamwhite in #490
New Contributors
- @nicoburns made their first contribution in #468
- @edwar4rd made their first contribution in #465
- @Veetaha made their first contribution in #466
Diff: v0.29.0...v0.30.0
v0.29.0
- Add support for backslash escape in wikilinks by @digitalmoksha in #471
Diff: v0.28.0...v0.29.0
v0.28.0
- Add a render option to render the image as
<figure>
by @JmPotato in #458 - Fix edge cases for relaxed-autolink option by @digitalmoksha in #461
Diff: v0.27.0...v0.28.0
v0.27.0
- Track line offsets for better accuracy of inline sourcepos by @digitalmoksha in #453
- Add experimental-inline-sourcepos to cli options by @digitalmoksha in #455
Diff: v0.26.0...v0.27.0
v0.26.0
v0.25.0
- 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.
- Three new extensions and two render options are added:
- 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.
- Back by popular demand:
- 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.
- Autolinks had many edge cases where output differed from upstream
- shortcodes: capture all known aliases. by @kivikakk in #427
- We didn't parse shortcodes containing numbers or
+
. We do now.
- We didn't parse shortcodes containing numbers or
- 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, meaningOptions
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.
- The broken reference link callback has been moved into
- 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
- @liamwhite made their first contribution in #421
- @yannham made their first contribution in #425
Diff: v0.24.1...v0.25.0
v0.24.1
What's Changed
- Miscellany. by @kivikakk in #387
- Add automation to release new crates by @gjtorikian in #374
- Update automerge.yml by @gjtorikian in #401
- Fix release workflows by @gjtorikian in #395
- workflows: check MSRV in CI. by @kivikakk in #406
- Add support for wikilinks format by @digitalmoksha in #407
- Autolink should ignore wikilinks by @digitalmoksha in #413
- Add GH_TOKEN to release workflow by @digitalmoksha in #418
- [skip test] Release v0.24.1 by @github-actions in #419
Full Changelog: 0.23.0...v0.24.1
v0.23.1-pre.3
Full Changelog: v0.23.1-pre.2...v0.23.1-pre.3
v0.23.1-pre.2
What's Changed
- Miscellany. by @kivikakk in #387
- Add automation to release new crates by @gjtorikian in #374
- build(deps): bump emojis from 0.5.2 to 0.6.2 by @dependabot in #393
- build(deps): bump arbitrary from 1.3.0 to 1.3.2 by @dependabot in #394
Full Changelog: 0.23.0...v0.23.1-pre.2
0.23.0
What's Changed
- add traverse() demo example by @kaesluder in #370
- Avoid backslashes before a new block. by @jneem in #373
- Expand traverse and descendants documentation: Issue #369 by @kaesluder in #375
- Feat/inplace: add new parameter
--inplace
(-i
) for in-place formatting by @bioinformatist in #377 - Change
relaxed-autolinks
to allow any url scheme by @digitalmoksha in #380 - Fix sourcepos for setext headers by @digitalmoksha in #381
- Add iterative search/replace example to examples and README.md by @kaesluder in #383
- un-Nix in CI. by @kivikakk in #384
- Return brackets in autolinks behavior back to cmark-gfm by @digitalmoksha in #386
New Contributors
- @kaesluder made their first contribution in #370
- @jneem made their first contribution in #373
- @bioinformatist made their first contribution in #377
Full Changelog: 0.22.0...0.23.0