Skip to content

commonmark-java 0.16.1

Choose a tag to compare

@robinst robinst released this 11 Dec 03:23

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