Releases: commonmark/commonmark-java
Releases · commonmark/commonmark-java
commonmark-java 0.18.2
Changed
- Test against Java 17
- Bundle LICENSE.txt with artifacts (in addition to Maven metadata)
commonmark-java 0.18.1
Fixed
- Fix tables with leading/trailing header pipes and trailing spaces (#244).
This was a regression in 0.16.1 which is now fixed.
commonmark-java 0.18.0
Changed
- Update to CommonMark spec 0.30:
- Add
textareato list of literal HTML block tags.
Likescript,style, andpre,textareablocks can contain
blank lines without the contents being interpreted as commonmark. - Fix case folding for link reference labels in some cases
(e.g.ẞandSSshould match) - Allow lowercase ASCII in HTML declaration
- Don't let type 7 HTML blocks interrupt lazy paragraphs either
- Add
- Preserve the original case for the label of
LinkReferenceDefinition.
Before, we used to store the normalized version (lowercase, collapsed whitespace).
commonmark-java 0.17.2
Changed
- Pass original instead of normalized label to
InlineParserContextfor lookup (#204).
This allows custom contexts to change the lookup logic and have access to the original
label content.
In case you have a custom implementation ofInlineParserContext, you might need to adjust
it to do normalization.
commonmark-java 0.17.1
Fixed
- Fix emphasis surrounded by non-BMP punctuation/whitespace characters
(characters that are longer than one UTF-16 "char"). Note that this is
an edge case with rarely used Unicode characters, which a lot of other
implementations don't handle correctly. - Fix tables where the row starts with spaces and then the first
|-
rows that didn't have spaces before were not affected (#199). This bug
is present in 0.16.1 and 0.17.0.
commonmark-java 0.17.0
Changed
- ACTION REQUIRED: Maven groupId has changed from
com.atlassian.commonmarktoorg.commonmark- To continue getting new versions of commonmark-java, change the Maven coordinates in your dependencies:
- Old:
<groupId>com.atlassian.commonmark</groupId> - New:
<groupId>org.commonmark</groupId>
commonmark-java 0.16.1
Added
- Support for including source spans on block and inline nodes (#1):
- Answer for "Where in the source input (line/column position and length) does this node come from?"
- Useful for things like editors that want to keep the input and rendered output scrolled to the same lines,
or start editing on the node that was selected. - Use
includeSourceSpansonParser.Builderto enable,
either withIncludeSourceSpans.BLOCKSorIncludeSourceSpans.BLOCKS_AND_INLINES - Read data with
Node.getSourceSpans - Note that enabling this has a small performance impact on parsing (about 10%)
Changed
- In order to support source spans (see above), a few of the extension
APIs changed. It should only affect users implementing their own
extensions. See the Javadoc to see what changed. - YAML front matter extension: Support dots in key names
commonmark-parent-0.15.2
Fixed
- image-attributes extension: Fix unexpected altering of text in case
parsing of attributes fails, e.g.{NN} text->{NN text}, thanks @jk1
commonmark-parent-0.15.1
Added
- Add text content rendering support for
InsExtension
commonmark-parent-0.15.0
Added
- Extension for width/height attributes for images, thanks @dohertyfjatl
- Syntax:
{width=640 height=480} - Use class
ImageAttributesExtensionin artifactcommonmark-ext-image-attributes
- Syntax:
- Extension for task lists (GitHub-style), thanks @dohertyfjatl
- Syntax:
- [x] task #1 - [ ] task #2 - Use class
TaskListItemsExtensionin artifactcommonmark-ext-task-list-items
- Syntax: