Skip to content

Commit 15bd59f

Browse files
authored
Merge pull request #341 from commonmark/release-0.23
Prepare release 0.23
2 parents 0fb7a16 + bc231e2 commit 15bd59f

14 files changed

Lines changed: 54 additions & 35 deletions

File tree

CHANGELOG.md

Lines changed: 31 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -6,25 +6,43 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/).
66
This project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html),
77
with 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):
427445
Initial release of commonmark-java, a port of commonmark.js with extensions
428446
for 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

commonmark-ext-autolink/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-autolink</artifactId>

commonmark-ext-footnotes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-footnotes</artifactId>

commonmark-ext-gfm-strikethrough/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-gfm-strikethrough</artifactId>

commonmark-ext-gfm-tables/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-gfm-tables</artifactId>

commonmark-ext-heading-anchor/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-heading-anchor</artifactId>

commonmark-ext-image-attributes/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-image-attributes</artifactId>

commonmark-ext-ins/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-ins</artifactId>

commonmark-ext-task-list-items/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<groupId>org.commonmark</groupId>
66
<artifactId>commonmark-parent</artifactId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-task-list-items</artifactId>

commonmark-ext-yaml-front-matter/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
<parent>
55
<artifactId>commonmark-parent</artifactId>
66
<groupId>org.commonmark</groupId>
7-
<version>0.22.1-SNAPSHOT</version>
7+
<version>0.23.0-SNAPSHOT</version>
88
</parent>
99

1010
<artifactId>commonmark-ext-yaml-front-matter</artifactId>

0 commit comments

Comments
 (0)