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)
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)
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.
Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
- `@dependabot rebase` will rebase this PR
- `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it
- `@dependabot merge` will merge this PR after your CI passes on it
- `@dependabot squash and merge` will squash and merge this PR after your CI passes on it
- `@dependabot cancel merge` will cancel a previously requested merge and block automerging
- `@dependabot reopen` will reopen this PR if it is closed
- `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
- `@dependabot show ignore conditions` will show all of the ignore conditions of the specified dependency
- `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
- `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
Bumps org.commonmark:commonmark-ext-gfm-tables from 0.21.0 to 0.22.0.
Release notes
Sourced from org.commonmark:commonmark-ext-gfm-tables's releases.
Changelog
Sourced from org.commonmark:commonmark-ext-gfm-tables's changelog.
Commits
913d438
[maven-release-plugin] prepare release commonmark-parent-0.22.0ef730f6
Merge pull request #313 from commonmark/prepare-0.22bd4012e
Prepare for version 0.22.0c5fe419
Prepare CHANGELOG for release 0.22260bd2e
Merge pull request #312 from commonmark/fix-markdown-renderer-fenced-code-blo...8b7f928
Fix markdown renderer for manually created fenced code blocksccdf1a3
Merge pull request #311 from commonmark/fix-markdown-renderer-lists-from-ast16c6ff2
Fix markdown renderer for manually created list nodes4a6b944
Merge pull request #310 from commonmark/issue-29221fc1df
Fix LinkReferenceDefinition having null SourceSpan when title is presentDependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show