From 5445514ed46cd246af5a8daf6ebe14aeba42b84fe0e5a9e7f5904096f2cc4a6f Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Wed, 15 Jan 2025 12:15:41 +0000 Subject: [PATCH] Accepting request 1237959 from home:urbic:branches:Java:packages - Update to 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) - Update to 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

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) OBS-URL: https://build.opensuse.org/request/show/1237959 OBS-URL: https://build.opensuse.org/package/show/Java:packages/commonmark-java?expand=0&rev=6 --- commonmark-java.changes | 59 +++++++++++++++++++++++++++++++++ commonmark-java.spec | 4 +-- commonmark-parent-0.22.0.tar.gz | 3 -- commonmark-parent-0.24.0.tar.gz | 3 ++ 4 files changed, 64 insertions(+), 5 deletions(-) delete mode 100644 commonmark-parent-0.22.0.tar.gz create mode 100644 commonmark-parent-0.24.0.tar.gz diff --git a/commonmark-java.changes b/commonmark-java.changes index 31b94e4..199ed34 100644 --- a/commonmark-java.changes +++ b/commonmark-java.changes @@ -1,3 +1,62 @@ +------------------------------------------------------------------- +Wed Jan 15 01:53:56 UTC 2025 - Anton Shvetz + +- Update to 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) +- Update to 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

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) + ------------------------------------------------------------------- Fri Jun 14 04:56:07 UTC 2024 - Anton Shvetz diff --git a/commonmark-java.spec b/commonmark-java.spec index 0c77e32..83c0992 100644 --- a/commonmark-java.spec +++ b/commonmark-java.spec @@ -1,7 +1,7 @@ # # spec file # -# Copyright (c) 2024 SUSE LLC +# Copyright (c) 2025 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -18,7 +18,7 @@ %global project_name commonmark Name: %{project_name}-java -Version: 0.22.0 +Version: 0.24.0 Release: 0 Summary: Java library for parsing and rendering CommonMark (Markdown) License: BSD-2-Clause diff --git a/commonmark-parent-0.22.0.tar.gz b/commonmark-parent-0.22.0.tar.gz deleted file mode 100644 index e59046a..0000000 --- a/commonmark-parent-0.22.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:810111db80f5f16159c314c6402ee234bbdc1fc56fb664cc89d74011a87935f1 -size 324146 diff --git a/commonmark-parent-0.24.0.tar.gz b/commonmark-parent-0.24.0.tar.gz new file mode 100644 index 0000000..af22e84 --- /dev/null +++ b/commonmark-parent-0.24.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:53cc1d5831f883ae61a24ae4e1e90af9160e253665a733afe73fef65645eb634 +size 343298