@@ -6,25 +6,43 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66This project adheres to [ Semantic Versioning] ( http://semver.org/spec/v2.0.0.html ) ,
77with the exception that 0.x versions can break between minor versions.
88
9- ## Unreleased
9+ ## [ 0.23.0 ] - 2024-09-16
1010### Added
11- - Support for extending inline parsing with custom inline content parsers! See
12- ` Parser.Builder#customInlineContentParserFactory ` . This allows users or
13- extensions to hook into inline parsing on a deeper level than using delimiter
14- processors. It could be used to implement support for math/latex formulas for
15- example.
11+ - New extension for footnotes!
12+ - Syntax:
13+ ```
14+ Main text[^1]
15+
16+ [^1]: Additional text in a footnote
17+ ```
18+ - Inline footnotes like `^[inline footnote]` are also supported when enabled
19+ via an option in `FootnotesExtension.Builder`
20+ - Use class `FootnotesExtension` in artifact `commonmark-ext-footnotes` (#332)
21+ - New option `omitSingleParagraphP` in `HtmlRenderer.Builder` for not using `<p>`
22+ tags for when a document only has one paragraph (#150)
23+ - Support for custom link processing during inline parsing (e.g. `[foo]`),
24+ see `Parser.Builder#linkProcessor`
25+ - Support for extending inline parsing with custom inline content parsers. See
26+ `Parser.Builder#customInlineContentParserFactory`. This allows users/extensions
27+ to hook into inline parsing on a deeper level than before (e.g. with delimiter
28+ processors). It can be used to add support for math/latex formulas or other inline
29+ syntax. (#321)
1630### Changed
31+ - The default `DefaultUrlSanitizer` now also allows `data` as a protocol. Use the
32+ constructor with a list to customize this. (#329)
1733- `LinkReferenceDefinition` now extends `Block` (it was extending `Node`
1834 directly before)
35+ - `MarkdownRenderer`: Don't escape `=` text if it's the first node in a block (#335)
1936### Fixed
20- - Fix parsing of link reference definitions where it looks like it has a title
21- but it doesn't because it's followed by characters other than space/tab. In that
22- case, the title was set to the partially-parsed title and the source spans were
23- wrong (#315 ).
37+ - Fix parsing of link reference definitions with incorrect title syntax (followed
38+ by characters other than space/tab). In that case, the title was set to the
39+ partially-parsed title and the source spans were wrong. (#315)
40+ - Fix source spans of blocks with lazy continuation lines (#337)
41+ - `MarkdownRenderer`: Preserve thematic break literals (#331)
2442
2543## [0.22.0] - 2024-03-15
2644### Added
27- - New ` MarkdownRenderer ` for rendering nodes to Markdown (CommonMark)!
45+ - New `MarkdownRenderer` for rendering nodes to Markdown (CommonMark) (#306) !
2846 Note that while care is taken to produce equivalent Markdown, some differences
2947 in the original Markdown (if parsed) are not preserved, such as:
3048 - The type of heading used
@@ -397,7 +415,7 @@ API breaking changes (caused by changes in spec):
397415- Rename `HorizontalRule` to `ThematicBreak`
398416- Rename `HtmlTag` to `HtmlInline`
399417- Replace `MatchedBlockParser#getParagraphStartLine` with `#getParagraphContent`
400- that returns the current content if the the matched block is a paragraph
418+ that returns the current content if the matched block is a paragraph
401419
402420## [0.3.2] - 2016-01-07
403421### Fixed
@@ -427,6 +445,7 @@ API breaking changes (caused by changes in spec):
427445Initial release of commonmark-java, a port of commonmark.js with extensions
428446for autolinking URLs, GitHub flavored strikethrough and tables.
429447
448+ [0.23.0]: https://github.com/commonmark/commonmark-java/compare/commonmark-parent-0.22.0...commonmark-parent-0.23.0
430449[0.22.0]: https://github.com/commonmark/commonmark-java/compare/commonmark-parent-0.21.0...commonmark-parent-0.22.0
431450[0.21.0]: https://github.com/commonmark/commonmark-java/compare/commonmark-parent-0.20.0...commonmark-parent-0.21.0
432451[0.20.0]: https://github.com/commonmark/commonmark-java/compare/commonmark-parent-0.19.0...commonmark-parent-0.20.0
0 commit comments