From 67fd7ee3b0937a213575b922c36427361096cf434c1a1dbdb59eed84dced376c Mon Sep 17 00:00:00 2001 From: Fridrich Strba Date: Fri, 14 Jun 2024 16:04:43 +0000 Subject: [PATCH] Accepting request 1180796 from home:urbic:branches:Java:packages - Update to v0.22.0 * Added + New MarkdownRenderer for rendering nodes to Markdown (CommonMark)! + 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) OBS-URL: https://build.opensuse.org/request/show/1180796 OBS-URL: https://build.opensuse.org/package/show/Java:packages/commonmark-java?expand=0&rev=5 --- commonmark-java.changes | 44 +++++++++++++++++++++++++++++++++ commonmark-java.spec | 4 +-- commonmark-parent-0.21.0.tar.gz | 3 --- commonmark-parent-0.22.0.tar.gz | 3 +++ 4 files changed, 48 insertions(+), 6 deletions(-) delete mode 100644 commonmark-parent-0.21.0.tar.gz create mode 100644 commonmark-parent-0.22.0.tar.gz diff --git a/commonmark-java.changes b/commonmark-java.changes index 078ba3e..31b94e4 100644 --- a/commonmark-java.changes +++ b/commonmark-java.changes @@ -1,3 +1,47 @@ +------------------------------------------------------------------- +Fri Jun 14 04:56:07 UTC 2024 - Anton Shvetz + +- Update to v0.22.0 + * Added + + New MarkdownRenderer for rendering nodes to Markdown + (CommonMark)! + + 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) + ------------------------------------------------------------------- Sat Jan 13 04:16:57 UTC 2024 - Anton Shvetz diff --git a/commonmark-java.spec b/commonmark-java.spec index 170235e..0c77e32 100644 --- a/commonmark-java.spec +++ b/commonmark-java.spec @@ -18,7 +18,7 @@ %global project_name commonmark Name: %{project_name}-java -Version: 0.21.0 +Version: 0.22.0 Release: 0 Summary: Java library for parsing and rendering CommonMark (Markdown) License: BSD-2-Clause @@ -56,8 +56,6 @@ API documentation for %{name}. %autosetup -n %{name}-%{project_name}-parent-%{version} %pom_remove_plugin -r org.sonatype.plugins:nexus-staging-maven-plugin %pom_remove_plugin -r :maven-javadoc-plugin -%pom_xpath_set -r 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:source' 8 -%pom_xpath_set -r 'pom:plugin[pom:artifactId="maven-compiler-plugin"]/pom:configuration/pom:target' 8 %{mvn_file} ':{*}' %{project_name}/@1 %build diff --git a/commonmark-parent-0.21.0.tar.gz b/commonmark-parent-0.21.0.tar.gz deleted file mode 100644 index ee9cfa9..0000000 --- a/commonmark-parent-0.21.0.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:e667e2ec6bf34fec43f129660cf04ec8160b017fb25efb1d2cc41a6f75666c4b -size 318903 diff --git a/commonmark-parent-0.22.0.tar.gz b/commonmark-parent-0.22.0.tar.gz new file mode 100644 index 0000000..e59046a --- /dev/null +++ b/commonmark-parent-0.22.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:810111db80f5f16159c314c6402ee234bbdc1fc56fb664cc89d74011a87935f1 +size 324146