commonmark-java 0.6.0
robinst
released this
25 Jul 12:47
·
707 commits
to main
since this release
- 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
DelimiterProcessor
interface so that implementations get more information ingetDelimiterUse
and can reject delimiters by returning0
from it. Also rename the methods:getOpeningDelimiterChar
->getOpeningCharacter
getClosingDelimiterChar
->getClosingCharacter
getMinDelimiterCount
->getMinLength
Internal improvements:
- Simplify merging of adjacent text nodes
- Add coverage data to build. Currently at 97 %.