rust-lang / blog.rust-lang.org

Home of the Rust and Inside Rust blogs
https://blog.rust-lang.org
Apache License 2.0
354 stars 285 forks source link

Update Rust crate comrak to v0.26.0 #1355

Closed renovate[bot] closed 2 months ago

renovate[bot] commented 3 months ago

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`](https://togithub.com/kivikakk/comrak/blob/HEAD/changelog.txt#v0260---12-07-2024) [Compare Source](https://togithub.com/kivikakk/comrak/compare/v0.25.0...v0.26.0) - Restore inline sourcepos as experimental. by [@​kivikakk](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/444](https://togithub.com/kivikakk/comrak/pull/444) - This is needed by some downstream users, so we re-introduce it, with a clearly labelled option. Diff: https://github.com/kivikakk/comrak/compare/v0.25.0...v0.26.0 ### [`v0.25.0`](https://togithub.com/kivikakk/comrak/blob/HEAD/changelog.txt#v0250---12-07-2024) [Compare Source](https://togithub.com/kivikakk/comrak/compare/v0.24.1...v0.25.0) - Discord-flavored Markdown by [@​Meow](https://togithub.com/Meow) and [@​liamwhite](https://togithub.com/liamwhite) in [https://github.com/kivikakk/comrak/pull/421](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/424](https://togithub.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](https://togithub.com/yannham) in [https://github.com/kivikakk/comrak/pull/425](https://togithub.com/kivikakk/comrak/pull/425) - The AST is validated when formatting a document as CommonMark in debug builds. - Address autolink edge cases. by [@​kivikakk](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/426](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/427](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/428](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/429](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/437](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/438](https://togithub.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](https://togithub.com/kivikakk) in [https://github.com/kivikakk/comrak/pull/439](https://togithub.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 - [@​liamwhite](https://togithub.com/liamwhite) made their first contribution in [https://github.com/kivikakk/comrak/pull/421](https://togithub.com/kivikakk/comrak/pull/421) - [@​yannham](https://togithub.com/yannham) made their first contribution in [https://github.com/kivikakk/comrak/pull/425](https://togithub.com/kivikakk/comrak/pull/425) Diff: https://github.com/kivikakk/comrak/compare/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.



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