Update CommonMark packages to v0.24.0 #476

Merged
tobi merged 3 commits from renovate/commonmark-packages into main 2025-01-03 20:20:56 +00:00
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
org.commonmark:commonmark-ext-gfm-tables 0.21.0 -> 0.24.0 age adoption passing confidence
org.commonmark:commonmark-ext-gfm-strikethrough 0.21.0 -> 0.24.0 age adoption passing confidence
org.commonmark:commonmark-ext-autolink 0.21.0 -> 0.24.0 age adoption passing confidence
org.commonmark:commonmark 0.21.0 -> 0.24.0 age adoption passing confidence

⚠️ Warning

Some dependencies could not be looked up. Check the Dependency Dashboard for more information.


Release Notes

commonmark/commonmark-java (org.commonmark:commonmark-ext-gfm-tables)

v0.24.0

Added
  • SourceSpan on nodes now have a getInputIndex to get the index within the
    original input string (in addition to the existing line/column indexes).
    This is useful when looking up the input source: It can now be done using
    substring instead of having to split the input into lines first (#​348)
  • Configurable line break rendering for TextContentRenderer via lineBreakRendering
    on the builder; e.g. LineBreakRendering.SEPARATE_BLOCKS will render an empty
    line between blocks (#​344)
Changed
  • Adopted small changes from OpenJDK vendoring to make updates easier for them (#​343)
Fixed
  • Enable overriding of built-in node rendering for TextContentRenderer (#​346)

v0.23.0

Added
  • New extension for footnotes!
    • Syntax:
      Main text[^1]

      [^1]: Additional text in a footnote
      
    • Inline footnotes like ^[inline footnote] are also supported when enabled
      via an option in FootnotesExtension.Builder

    • Use class FootnotesExtension in artifact commonmark-ext-footnotes (#​332)

  • New option omitSingleParagraphP in HtmlRenderer.Builder for not using <p>
    tags for when a document only has one paragraph (#​150)
  • Support for custom link processing during inline parsing (e.g. [foo]),
    see Parser.Builder#linkProcessor
  • Support for extending inline parsing with custom inline content parsers. See
    Parser.Builder#customInlineContentParserFactory. This allows users/extensions
    to hook into inline parsing on a deeper level than before (e.g. with delimiter
    processors). It can be used to add support for math/latex formulas or other inline
    syntax. (#​321)
Changed
  • The default DefaultUrlSanitizer now also allows data as a protocol. Use the
    constructor with a list to customize this. (#​329)
  • LinkReferenceDefinition now extends Block (it was extending Node
    directly before)
  • MarkdownRenderer: Don't escape = text if it's the first node in a block (#​335)
Fixed
  • Fix parsing of link reference definitions with incorrect title syntax (followed
    by characters other than space/tab). In that case, the title was set to the
    partially-parsed title and the source spans were wrong. (#​315)
  • Fix source spans of blocks with lazy continuation lines (#​337)
  • MarkdownRenderer: Preserve thematic break literals (#​331)

v0.22.0

Added
  • New MarkdownRenderer for rendering nodes to Markdown (CommonMark) (#​306)!
    Note that while care is taken to produce equivalent Markdown, some differences
    in the original Markdown (if parsed) are not preserved, such as:
    • The type of heading used
    • The type of link used (reference links will be rendered as inline links)
    • Whether special characters are escaped or not
    • Leading and trailing whitespace
  • Modular JAR (JPMS): All artifacts now include module descriptors (module-info)
    so jlink can be used; the old Automatic-Module-Name manifest entries were removed
  • New package org.commonmark.parser.beta containing classes that are not part of
    the stable API but are exported from the module because they might be useful for
    extension parsers
  • New package org.commonmark.text for text related utilities that are useful for
    both parsing and rendering
  • TableCell now has getWidth returning the number of dash and colon characters
    in the delimiter row, useful for rendering proportional width tables (#​296)
  • ThematicBreak now has getLiteral containing the string that was used in the
    source when parsing (#​309)
  • ListItem now has getMarkerIndent and getContentIndent for retrieving the
    space between the start of the line and the marker/content
  • Deprecated a some properties of BulletList, OrderedList, FencedCodeBlock
    and replaced with nullable ones because they might not be set when constructing
    these nodes manually instead of via parsing
Changed
  • Java 11 or later is now required (dropping support for Java 8)
  • Update to CommonMark spec 0.31.2
Fixed
  • Fix LinkReferenceDefinition having null SourceSpan when title is present
    and parsing with source spans option enabled (#​310)

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 these updates again.


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

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | Age | Adoption | Passing | Confidence | |---|---|---|---|---|---| | [org.commonmark:commonmark-ext-gfm-tables](https://github.com/commonmark/commonmark-java) | `0.21.0` -> `0.24.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-gfm-tables/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-gfm-tables/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-gfm-tables/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-gfm-tables/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-gfm-strikethrough](https://github.com/commonmark/commonmark-java) | `0.21.0` -> `0.24.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-gfm-strikethrough/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark-ext-autolink](https://github.com/commonmark/commonmark-java) | `0.21.0` -> `0.24.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark-ext-autolink/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark-ext-autolink/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark-ext-autolink/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark-ext-autolink/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | | [org.commonmark:commonmark](https://github.com/commonmark/commonmark-java) | `0.21.0` -> `0.24.0` | [![age](https://developer.mend.io/api/mc/badges/age/maven/org.commonmark:commonmark/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/org.commonmark:commonmark/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/org.commonmark:commonmark/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/org.commonmark:commonmark/0.21.0/0.24.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- > ⚠️ **Warning** > > Some dependencies could not be looked up. Check the Dependency Dashboard for more information. --- ### Release Notes <details> <summary>commonmark/commonmark-java (org.commonmark:commonmark-ext-gfm-tables)</summary> ### [`v0.24.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0240---2024-10-21) ##### Added - `SourceSpan` on nodes now have a `getInputIndex` to get the index within the original input string (in addition to the existing line/column indexes). This is useful when looking up the input source: It can now be done using `substring` instead of having to split the input into lines first ([#&#8203;348](https://github.com/commonmark/commonmark-java/issues/348)) - Configurable line break rendering for `TextContentRenderer` via `lineBreakRendering` on the builder; e.g. `LineBreakRendering.SEPARATE_BLOCKS` will render an empty line between blocks ([#&#8203;344](https://github.com/commonmark/commonmark-java/issues/344)) ##### Changed - Adopted small changes from OpenJDK vendoring to make updates easier for them ([#&#8203;343](https://github.com/commonmark/commonmark-java/issues/343)) ##### Fixed - Enable overriding of built-in node rendering for `TextContentRenderer` ([#&#8203;346](https://github.com/commonmark/commonmark-java/issues/346)) ### [`v0.23.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0230---2024-09-16) ##### Added - New extension for footnotes! - Syntax: Main text[^1] [^1]: Additional text in a footnote - Inline footnotes like `^[inline footnote]` are also supported when enabled via an option in `FootnotesExtension.Builder` - Use class `FootnotesExtension` in artifact `commonmark-ext-footnotes` ([#&#8203;332](https://github.com/commonmark/commonmark-java/issues/332)) - New option `omitSingleParagraphP` in `HtmlRenderer.Builder` for not using `<p>` tags for when a document only has one paragraph ([#&#8203;150](https://github.com/commonmark/commonmark-java/issues/150)) - Support for custom link processing during inline parsing (e.g. `[foo]`), see `Parser.Builder#linkProcessor` - Support for extending inline parsing with custom inline content parsers. See `Parser.Builder#customInlineContentParserFactory`. This allows users/extensions to hook into inline parsing on a deeper level than before (e.g. with delimiter processors). It can be used to add support for math/latex formulas or other inline syntax. ([#&#8203;321](https://github.com/commonmark/commonmark-java/issues/321)) ##### Changed - The default `DefaultUrlSanitizer` now also allows `data` as a protocol. Use the constructor with a list to customize this. ([#&#8203;329](https://github.com/commonmark/commonmark-java/issues/329)) - `LinkReferenceDefinition` now extends `Block` (it was extending `Node` directly before) - `MarkdownRenderer`: Don't escape `=` text if it's the first node in a block ([#&#8203;335](https://github.com/commonmark/commonmark-java/issues/335)) ##### Fixed - Fix parsing of link reference definitions with incorrect title syntax (followed by characters other than space/tab). In that case, the title was set to the partially-parsed title and the source spans were wrong. ([#&#8203;315](https://github.com/commonmark/commonmark-java/issues/315)) - Fix source spans of blocks with lazy continuation lines ([#&#8203;337](https://github.com/commonmark/commonmark-java/issues/337)) - `MarkdownRenderer`: Preserve thematic break literals ([#&#8203;331](https://github.com/commonmark/commonmark-java/issues/331)) ### [`v0.22.0`](https://github.com/commonmark/commonmark-java/blob/HEAD/CHANGELOG.md#0220---2024-03-15) ##### Added - New `MarkdownRenderer` for rendering nodes to Markdown (CommonMark) ([#&#8203;306](https://github.com/commonmark/commonmark-java/issues/306))! Note that while care is taken to produce equivalent Markdown, some differences in the original Markdown (if parsed) are not preserved, such as: - The type of heading used - The type of link used (reference links will be rendered as inline links) - Whether special characters are escaped or not - Leading and trailing whitespace - Modular JAR (JPMS): All artifacts now include module descriptors (module-info) so jlink can be used; the old `Automatic-Module-Name` manifest entries were removed - New package `org.commonmark.parser.beta` containing classes that are not part of the stable API but are exported from the module because they might be useful for extension parsers - New package `org.commonmark.text` for text related utilities that are useful for both parsing and rendering - `TableCell` now has `getWidth` returning the number of dash and colon characters in the delimiter row, useful for rendering proportional width tables ([#&#8203;296](https://github.com/commonmark/commonmark-java/issues/296)) - `ThematicBreak` now has `getLiteral` containing the string that was used in the source when parsing ([#&#8203;309](https://github.com/commonmark/commonmark-java/issues/309)) - `ListItem` now has `getMarkerIndent` and `getContentIndent` for retrieving the space between the start of the line and the marker/content - Deprecated a some properties of `BulletList`, `OrderedList`, `FencedCodeBlock` and replaced with nullable ones because they might not be set when constructing these nodes manually instead of via parsing ##### Changed - Java 11 or later is now required (dropping support for Java 8) - Update to CommonMark spec 0.31.2 ##### Fixed - Fix `LinkReferenceDefinition` having null `SourceSpan` when title is present and parsing with source spans option enabled ([#&#8203;310](https://github.com/commonmark/commonmark-java/issues/310)) </details> --- ### 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 these updates again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40NDAuNyIsInVwZGF0ZWRJblZlciI6IjM3LjQ0MC43IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJkZXBlbmRlbmN5IiwiamF2YSIsInJ1bnRpbWUiXX0=-->
renovate-bot added the
dependency
java
runtime
labels 2025-01-03 19:30:22 +00:00
renovate-bot added 1 commit 2025-01-03 19:30:23 +00:00
tobi added 2 commits 2025-01-03 20:20:47 +00:00
tobi merged commit 7b9046a5ec into main 2025-01-03 20:20:56 +00:00
tobi deleted branch renovate/commonmark-packages 2025-01-03 20:20:56 +00:00
Sign in to join this conversation.
No description provided.