Releases: commonmark/commonmark-java
Releases · commonmark/commonmark-java
commonmark-java 0.6.0
- Update to CommonMark spec 0.26 (#55)
- empty list items can no longer interrupt a paragraph; this resolves an ambiguity with setext headers
- ordered lists can interrupt a paragraph only when beginning with 1
- the two-blank-lines-breaks-out-of-lists rule has been removed
- the spec for emphasis and strong emphasis has been refined to give more intuitive results in some cases
- tabs can be used after the # in an ATX header and between the markers in a thematic break
- Fix max length for link labels (999, not 1000)
- Simplify and speed up brackets processing (links/images)
- Improves the nested brackets pathological case (e.g.
[[[[a]]]]with a lot of brackets) - Also contributed these changes upstream to commonmark.js
- Improves the nested brackets pathological case (e.g.
ext-autolink: Update to autolink 0.5.0:
- Stop URLs at more invalid characters, notably '<' and '>'.
According to RFC 3987, angle brackets are not allowed in URLs, and
other linkers don't seem to allow them either.
Extension API changes:
- Extended
DelimiterProcessorinterface so that implementations get more information ingetDelimiterUseand can reject delimiters by returning0from it. Also rename the methods:getOpeningDelimiterChar->getOpeningCharactergetClosingDelimiterChar->getClosingCharactergetMinDelimiterCount->getMinLength
Internal improvements:
- Simplify merging of adjacent text nodes
- Add coverage data to build. Currently at 97 %.
commonmark-java 0.5.1
- Fix
StringIndexOutOfBoundsExceptionon line after tab (#52)
commonmark-java 0.5.0
Update to CommonMark spec 0.25:
- Changes how partially consumed tabs are handled.
Features and fixes:
- Add YAML front matter extension for document metadata blocks (#24), thanks to @chiwanpark
- Add information about delimiter character and length to delimiter nodes (#10), thanks to @pcj
- Make HTML rendering for nodes extensible (#35)
- Make
AttributeProviderwork for image and table nodes (#31) - Add Android test project to build so that we won't break Android support (#38), thanks to @JinneeJ
- Fix blank line after empty list item to terminate list
- Fix nested bullet list indented with mix of tab and spaces (#41), thanks to @derari
- Fix package name in Javadoc, thanks to @jiakuan
ext-autolink: Update to autolink 0.4.0
- Treat more special characters as trailing delimiters to not include
">,"/>and");at the end of URLs - Fix unexpected link end with unfinished delimiter pairs in URLs
- Fix Android incompatibility by not using
java.util.Objects
Extension API changes:
commonmark-java 0.4.1
commonmark-java 0.4.0
Update to CommonMark spec 0.24 (#28):
- No longer allow whitespace between link text and link label
- Don't allow whitespace in link destination even with <>
- Don't use whitelist for schemes in autolinks, recognize all 2-32 length schemes (see spec)
- Allow multi-line content in setext headings
API breaking changes (caused by changes in spec):
- Rename
HeadertoHeading - Rename
HorizontalRuletoThematicBreak - Rename
HtmlTagtoHtmlInline - Replace
MatchedBlockParser#getParagraphStartLinewith#getParagraphContentthat returns the current content if the the matched block is a paragraph
commonmark-java 0.3.2
- Add more bounds checks to internal Substring class (might affect extensions)
commonmark-java 0.3.1
- Fix StringIndexOutOfBoundsException with unclosed inline link (#27)
commonmark-java 0.3.0
commonmark-java 0.2.0
commonmark-java 0.1.0
Initial release!