Name | Modified | Size | Downloads / Week |
---|---|---|---|
Parent folder | |||
commonmark-java 0.22.0 source code.tar.gz | 2024-03-15 | 324.3 kB | |
commonmark-java 0.22.0 source code.zip | 2024-03-15 | 526.1 kB | |
README.md | 2024-03-15 | 1.8 kB | |
Totals: 3 Items | 852.3 kB | 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 hasgetWidth
returning the number of dash and colon characters in the delimiter row, useful for rendering proportional width tables (#296)ThematicBreak
now hasgetLiteral
containing the string that was used in the source when parsing (#309)ListItem
now hasgetMarkerIndent
andgetContentIndent
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 nullSourceSpan
when title is present and parsing with source spans option enabled (#310)