Skip to content

Update Rust crate comrak to v0.26.0 #1355

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 22, 2024
Merged

Update Rust crate comrak to v0.26.0 #1355

merged 1 commit into from
Jul 22, 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.26.0

Release Notes

kivikakk/comrak (comrak)

v0.26.0

Compare Source

Diff: kivikakk/comrak@v0.25.0...v0.26.0

v0.25.0

Compare Source

  • Discord-flavored Markdown by @​Meow and @​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.

@renovate renovate bot force-pushed the renovate/comrak-0.x branch from 1515fc7 to 834fff8 Compare July 12, 2024 18:18
@renovate renovate bot changed the title Update Rust crate comrak to v0.25.0 Update Rust crate comrak to v0.26.0 Jul 12, 2024
@Turbo87 Turbo87 enabled auto-merge (squash) July 22, 2024 10:59
@Turbo87 Turbo87 merged commit 5603736 into master Jul 22, 2024
3 checks passed
@Turbo87 Turbo87 deleted the renovate/comrak-0.x branch July 22, 2024 10:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant