Skip to content

Update Rust crate comrak to v0.25.0 #9066

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 12, 2024
Merged

Update Rust crate comrak to v0.25.0 #9066

merged 1 commit into from
Jul 12, 2024

Conversation

renovate[bot]
Copy link
Contributor

@renovate renovate bot commented Jul 12, 2024

Mend Renovate

This PR contains the following updates:

Package Type Update Change
comrak dependencies minor =0.24.1 -> =0.25.0

Release Notes

kivikakk/comrak (comrak)

v0.25.0

Compare Source

  • Discord-flavored Markdown by @​liamwhite in https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/424
    • Back by popular demand: AstNode::from(NodeValue).
    • Also added is AstNode::from(Ast), if you have sourcepos.
  • AST validation by @​yannham in https://github.com/kivikakk/comrak/pull/425
    • The AST is validated when formatting a document as CommonMark in debug builds.
  • Address autolink edge cases. by @​kivikakk in https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/429
    • Ordered list item numbers are normalised on formatting back to CommonMark.
  • arena_tree: panic if iterator invalidation causes trouble. by @​kivikakk in https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/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 https://github.com/kivikakk/comrak/pull/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: kivikakk/comrak@v0.24.1...v0.25.0


Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Mend Renovate. View repository job log here.

Copy link

codecov bot commented Jul 12, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 89.13%. Comparing base (12e75f1) to head (91724a9).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #9066      +/-   ##
==========================================
+ Coverage   89.11%   89.13%   +0.01%     
==========================================
  Files         280      280              
  Lines       28216    28216              
==========================================
+ Hits        25146    25150       +4     
+ Misses       3070     3066       -4     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@Turbo87 Turbo87 merged commit c2ed7e3 into main Jul 12, 2024
10 checks passed
@Turbo87 Turbo87 deleted the renovate/comrak-0.x branch July 12, 2024 13:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant