Skip to content

Releases: commonmark/commonmark-java

commonmark-java 0.18.2

02 Jun 05:48

Choose a tag to compare

Changed

  • Test against Java 17
  • Bundle LICENSE.txt with artifacts (in addition to Maven metadata)

commonmark-java 0.18.1

02 Jun 05:48

Choose a tag to compare

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

01 Jul 01:23

Choose a tag to compare

Changed

  • Update to CommonMark spec 0.30:
    • Add textarea to list of literal HTML block tags.
      Like script, style, and pre, textarea blocks can contain
      blank lines without the contents being interpreted as commonmark.
    • Fix case folding for link reference labels in some cases
      (e.g. and SS should match)
    • Allow lowercase ASCII in HTML declaration
    • Don't let type 7 HTML blocks interrupt lazy paragraphs either
  • 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

14 May 13:44

Choose a tag to compare

Changed

  • Pass original instead of normalized label to InlineParserContext for 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 of InlineParserContext, you might need to adjust
    it to do normalization.

commonmark-java 0.17.1

04 Feb 00:02

Choose a tag to compare

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

15 Jan 06:13

Choose a tag to compare

Changed

  • ACTION REQUIRED: Maven groupId has changed from com.atlassian.commonmark to org.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

11 Dec 03:23

Choose a tag to compare

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 includeSourceSpans on Parser.Builder to enable,
      either with IncludeSourceSpans.BLOCKS or IncludeSourceSpans.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

20 Jul 10:43

Choose a tag to compare

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

20 Jul 10:42

Choose a tag to compare

Added

  • Add text content rendering support for InsExtension

commonmark-parent-0.15.0

20 Jul 10:41

Choose a tag to compare

Added

  • Extension for width/height attributes for images, thanks @dohertyfjatl
    • Syntax: ![text](/url.png){width=640 height=480}
    • Use class ImageAttributesExtension in artifact commonmark-ext-image-attributes
  • Extension for task lists (GitHub-style), thanks @dohertyfjatl
    • Syntax:
      - [x] task #1
      - [ ] task #2
      
    • Use class TaskListItemsExtension in artifact commonmark-ext-task-list-items