| 1 |
<!-- |
| 2 |
|
| 3 |
Categories to use in this document, and the order in which to give them: |
| 4 |
|
| 5 |
Security: |
| 6 |
Reverts: |
| 7 |
Parser changes: |
| 8 |
Changed APIs: |
| 9 |
New APIs: |
| 10 |
Bug fixes: |
| 11 |
Stability: |
| 12 |
Performance: |
| 13 |
Dependency updates: |
| 14 |
Documentation: |
| 15 |
Build changes: |
| 16 |
Behind the scenes: |
| 17 |
|
| 18 |
--> |
| 19 |
|
| 20 |
# [v0.54.0] - 2026-07-12 |
| 21 |
|
| 22 |
Changed APIs: |
| 23 |
|
| 24 |
* Header/anchor renders been changed to improve accessibility (by @aozerova in https://github.com/kivikakk/comrak/pull/808) |
| 25 |
* The anchor no longer has `aria-hidden`, and gets a proper `aria-label`. It also now appears at the _end_ of the header, not the front. |
| 26 |
* `html::collect_text` has been moved onto `Node` (by @kivikakk in https://github.com/kivikakk/comrak/pull/818) |
| 27 |
* All items marked as deprecated has been removed. You've been warned! (by @kivikakk in https://github.com/kivikakk/comrak/pull/823) |
| 28 |
|
| 29 |
New APIs: |
| 30 |
|
| 31 |
* LaTeX-style math delimiters are now supported with an option! (by @blib in https://github.com/kivikakk/comrak/pull/809 |
| 32 |
* Attribute support has been added! (by @kivikakk in https://github.com/kivikakk/comrak/pull/814, https://github.com/kivikakk/comrak/pull/816) |
| 33 |
* They aren't exposed in any formatter yet, so you'll need a custom formatter. |
| 34 |
* Attribute parsing can be enabled on headers, fenced code blocks, inline code spans, and links and images. |
| 35 |
* Aaaand the parsing code was cleaned up a bit :) (by @KevSlashNull in https://github.com/kivikakk/comrak/pull/817) |
| 36 |
* Semantic HTML for alerts/admonitions can now be used! (by @flying-sheep in https://github.com/kivikakk/comrak/pull/822) |
| 37 |
|
| 38 |
Bug fixes: |
| 39 |
|
| 40 |
* Fix a CommonMark roundtripping failure when whitespace entities are place at emphasis boundaries (by @kivikakk in https://github.com/kivikakk/comrak/pull/750) |
| 41 |
* Fix a crash in the CommonMark renderer with ordered lists nested in blockquotes (by @kivikakk in https://github.com/kivikakk/comrak/pull/815) |
| 42 |
|
| 43 |
Dependency updates: |
| 44 |
|
| 45 |
* Bump toml from `1.1.0+spec-1.1.0` to `1.1.2+spec-1.1.0` (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/819) |
| 46 |
|
| 47 |
|
| 48 |
## New Contributors |
| 49 |
|
| 50 |
* @blib made their first contribution in https://github.com/kivikakk/comrak/pull/809 |
| 51 |
* @KevSlashNull made their first contribution in https://github.com/kivikakk/comrak/pull/817 |
| 52 |
* @flying-sheep made their first contribution in https://github.com/kivikakk/comrak/pull/822 |
| 53 |
|
| 54 |
Diff: https://github.com/kivikakk/comrak/compare/v0.53.0...v0.54.0 |
| 55 |
|
| 56 |
|
| 57 |
# [v0.53.0] - 2026-07-02 |
| 58 |
|
| 59 |
Changed APIs: |
| 60 |
|
| 61 |
* `--inplace` now accepts multiple arguments (by @ilkecan in https://github.com/kivikakk/comrak/pull/792) |
| 62 |
|
| 63 |
Bug fixes: |
| 64 |
|
| 65 |
* `~`, `~~~` and `:::` are escaped in CommonMark output (by @sandmor in https://github.com/kivikakk/comrak/pull/791) |
| 66 |
|
| 67 |
Stability: |
| 68 |
|
| 69 |
* AST now validated when formatting HTML and XML in debug builds (@aozerova in https://github.com/kivikakk/comrak/pull/800) |
| 70 |
|
| 71 |
Dependency updates: |
| 72 |
|
| 73 |
* Bump mshick/add-pr-comment from 2 to 2.8.2 (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/793) |
| 74 |
* Bump peter-evans/create-pull-request from 8 to 8.1.0 (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/797) |
| 75 |
* Bump CodSpeedHQ/action from 4 to 4.10.4 (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/794, https://github.com/kivikakk/comrak/pull/798, https://github.com/kivikakk/comrak/pull/799) |
| 76 |
* Bump toml from 1.0.6+spec-1.1.0 to 1.1.0+spec-1.1.0 (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/810) |
| 77 |
* Bump rustc-hash from 2.1.1 to 2.1.2 (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/811) |
| 78 |
* GitHub Actions SHAs pinned with 90 day minimum age to avoid supply-chain nonsense (by @kivikakk in https://github.com/kivikakk/comrak/pull/802) |
| 79 |
|
| 80 |
Documentation: |
| 81 |
|
| 82 |
* Scoop installation instructions added to README (by @tats-u in https://github.com/kivikakk/comrak/pull/796) |
| 83 |
|
| 84 |
Build changes: |
| 85 |
|
| 86 |
* Alternative syntect backends are exposed as features (by @gjtorikian in https://github.com/kivikakk/comrak/pull/812) |
| 87 |
* **WASM users**: you will need to build with `--no-default-features`. Please read the pull request for more details; suggestions/fixes most appreciated! |
| 88 |
|
| 89 |
|
| 90 |
## New Contributors |
| 91 |
|
| 92 |
* @sandmor made their first contribution in https://github.com/kivikakk/comrak/pull/791 |
| 93 |
* @ilkecan made their first contribution in https://github.com/kivikakk/comrak/pull/792 |
| 94 |
* @aozerova made their first contribution in https://github.com/kivikakk/comrak/pull/800! |
| 95 |
|
| 96 |
Diff: https://github.com/kivikakk/comrak/compare/v0.52.0...v0.53.0 |
| 97 |
|
| 98 |
|
| 99 |
# [v0.52.0] - 2026-04-04 |
| 100 |
|
| 101 |
Happy April! |
| 102 |
|
| 103 |
Reverts: |
| 104 |
|
| 105 |
* I had to remove the Typst formatter I was so happy about in the last release! This is very unfortunate. It turned out to be LLM-generated, and I just haven't had the time or energy to replace it myself. (by @kivikakk in https://github.com/kivikakk/comrak/pull/781) |
| 106 |
|
| 107 |
Changed APIs: |
| 108 |
|
| 109 |
* Deprecate the option name `header_ids` in favor of `header_id_prefix`, to make it clear that the option value actually adds a prefix to the `id` attribute, and add the `header_id_prefix_in_href` option, which adds the same prefix to generated `href`s. (by @miketheman in https://github.com/kivikakk/comrak/pull/776) |
| 110 |
* Decouple greentext handling from blockquote parsing. (by @Martin005 in https://github.com/kivikakk/comrak/pull/789) |
| 111 |
* This means a lone `>` amongst blockquotes won't trigger greentext when enabled. |
| 112 |
|
| 113 |
New APIs: |
| 114 |
|
| 115 |
* Add parse option for char-based columns in `Sourcepos`. They report by default in byte columns according to the input UTF-8 source. (by @Martin005 in https://github.com/kivikakk/comrak/pull/779) |
| 116 |
* Add block directive extension. (by @P-SiZK in https://github.com/kivikakk/comrak/pull/782) |
| 117 |
|
| 118 |
Dependency updates: |
| 119 |
|
| 120 |
* Bump toml from 1.0.3+spec-1.1.0 to 1.0.6+spec-1.1.0. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/778) |
| 121 |
* I've lengthened the dependency cooldown in Dependabot to 90 days, given _gestures aimlessly_ the state of everything. (15c22fa2) |
| 122 |
|
| 123 |
Documentation: |
| 124 |
|
| 125 |
* Added a `CONTRIBUTING.md` that directs the reader to the README's contributing section. (ddae1558) |
| 126 |
|
| 127 |
Build changes: |
| 128 |
|
| 129 |
* Set `codegen-units = 1` for release builds. (suggested by @zamazan4ik, added in ea026ef3) |
| 130 |
|
| 131 |
Behind the scenes: |
| 132 |
|
| 133 |
* Stop fuzz targets regressing by adding the build to CI. (by @kivikakk in https://github.com/kivikakk/comrak/pull/771) |
| 134 |
|
| 135 |
|
| 136 |
## New Contributors |
| 137 |
|
| 138 |
* @P-SiZK made their first contribution in https://github.com/kivikakk/comrak/pull/782 |
| 139 |
|
| 140 |
Diff: https://github.com/kivikakk/comrak/compare/v0.51.0...v0.52.0 |
| 141 |
|
| 142 |
|
| 143 |
# [v0.51.0] - 2026-03-10 |
| 144 |
|
| 145 |
新年快乐! :) What a lovely assortment of improvements, fixes, and new contributors we have in this release. Of particular note, Comrak has gained initial support for [formatting to Typst](https://github.com/kivikakk/comrak/pull/763), thanks to @neilberkman! This is a first cut and there are some known issues — see the PR — but I'm super happy to have folks testing it sooner rather than later! |
| 146 |
|
| 147 |
Changed APIs: |
| 148 |
|
| 149 |
* Add "css" to CLI's syntax highlighting options; set CSS as the default highlighting mode. (by @gjtorikian in https://github.com/kivikakk/comrak/pull/739) |
| 150 |
* Allow raw nodes to be children of anything. (by @JeanMertz in https://github.com/kivikakk/comrak/pull/743) |
| 151 |
* Support comma-delimited language tokens in Syntect plugin. (by @neilberkman in https://github.com/kivikakk/comrak/pull/752) |
| 152 |
|
| 153 |
New APIs: |
| 154 |
|
| 155 |
* Added `RenderPlugins::codefence_renderers` to register language-specific codefence renderers. (by @neilberkman in https://github.com/kivikakk/comrak/pull/751) |
| 156 |
* Added `CodefenceRendererAdapter` for language-specific codefence rendering. Its `write` method receives parsed codefence language and metadata (`lang`, `meta`) alongside code and source position. (by @neilberkman in https://github.com/kivikakk/comrak/pull/751) |
| 157 |
* Add `++insert++` extension and guillemet smart punctuation. (by @neilberkman in https://github.com/kivikakk/comrak/pull/754) |
| 158 |
* Add Typst formatter. (by @neilberkman in https://github.com/kivikakk/comrak/pull/763) |
| 159 |
* Add `compact_html` render option to suppress newlines in pretty-printing. (by @xvchris in https://github.com/kivikakk/comrak/pull/769) |
| 160 |
|
| 161 |
Bug fixes: |
| 162 |
|
| 163 |
* Don't wrap text in table cells in CommonMark output. (by @cinerea0 in https://github.com/kivikakk/comrak/pull/737) |
| 164 |
* Fix incorrect `sourcepos` for inserted table cells. (by @Martin005 in https://github.com/kivikakk/comrak/pull/747) |
| 165 |
* Fix HEEx nested element edge cases. (by @leandrocp in https://github.com/kivikakk/comrak/pull/749) |
| 166 |
* Fix off-by-one in hex entity digit limit. (by @neilberkman in https://github.com/kivikakk/comrak/pull/753) |
| 167 |
|
| 168 |
Dependency updates: |
| 169 |
|
| 170 |
* Replace `unicode_categories` with `finl_unicode` for Unicode character categories. (by @Martin005 in https://github.com/kivikakk/comrak/pull/757) |
| 171 |
* Bump bon from `3.8.2` to `3.9.0`. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/759) |
| 172 |
* Bump clap from `4.5.54` to `4.5.60`. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/748, https://github.com/kivikakk/comrak/pull/756, https://github.com/kivikakk/comrak/pull/758, https://github.com/kivikakk/comrak/pull/766) |
| 173 |
* Bump strum from `0.27.2` to `0.28.0`. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/765) |
| 174 |
* Bump time from `0.3.36` to `0.3.47` in `/fuzz`. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/744) |
| 175 |
* Bump toml from `0.9.10+spec-1.1.0` to `1.0.3+spec-1.1.0`. (by `@dependabot[bot]` in https://github.com/kivikakk/comrak/pull/742, https://github.com/kivikakk/comrak/pull/760, https://github.com/kivikakk/comrak/pull/767) |
| 176 |
|
| 177 |
Documentation: |
| 178 |
|
| 179 |
* Add `alerts` (admonitions) to README. (by @kritzelkrak in https://github.com/kivikakk/comrak/pull/761) |
| 180 |
* Explain column counting in `LineColumn`, and fix shortcode context link. (by @Martin005 in https://github.com/kivikakk/comrak/pull/764) |
| 181 |
|
| 182 |
|
| 183 |
## New Contributors |
| 184 |
|
| 185 |
* @cinerea0 made their first contribution in https://github.com/kivikakk/comrak/pull/737 |
| 186 |
* @JeanMertz made their first contribution in https://github.com/kivikakk/comrak/pull/743 |
| 187 |
* @neilberkman made their first contribution in https://github.com/kivikakk/comrak/pull/751 |
| 188 |
* @kritzelkrak made their first contribution in https://github.com/kivikakk/comrak/pull/761 |
| 189 |
* @xvchris made their first contribution in https://github.com/kivikakk/comrak/pull/769 |
| 190 |
|
| 191 |
Diff: https://github.com/kivikakk/comrak/compare/v0.50.0...v0.51.0 |
| 192 |
|
| 193 |
|
| 194 |
# [v0.50.0] - 2026-01-22 |
| 195 |
|
| 196 |
The big news is that I've updated Comrak to use Rust 2024, which means our MSRV has been updated to |
| 197 |
1.85. I'm sorry if this affects you negatively! Keeping dependencies up-to-date while respecting |
| 198 |
our MSRV is basically impossible without the [MSRV |
| 199 |
resolver](https://rust-lang.github.io/rfcs/3537-msrv-resolver.html), and I've spent far too many |
| 200 |
hours of my short life trying to do without it. Thank you for your understanding 🤍 |
| 201 |
|
| 202 |
Bug fixes: |
| 203 |
|
| 204 |
* Incorrect `sourcepos` for lists before CodeBlocks fixed. (by @Martin005 in https://github.com/kivikakk/comrak/pull/712) |
| 205 |
* Incorrect `sourcepos` for HTML and HEEx blocks inside blockquotes fixed. (by @Martin005 in https://github.com/kivikakk/comrak/pull/714) |
| 206 |
* HTML block in blockquote in multiline block quotes had no content; now it does! (by @Martin005 in https://github.com/kivikakk/comrak/pull/713) |
| 207 |
* Fixed some bugs with HEEx components mixed with Markdown. (by @leandrocp in https://github.com/kivikakk/comrak/pull/719) |
| 208 |
|
| 209 |
Performance: |
| 210 |
|
| 211 |
* Reduced some heap allocations and improved hash function performance. (by @gjtorikian in https://github.com/kivikakk/comrak/pull/717) |
| 212 |
|
| 213 |
Dependency updates: |
| 214 |
|
| 215 |
* A whole _lot_ of Dependabot updates: |
| 216 |
* https://github.com/kivikakk/comrak/pull/711 |
| 217 |
* https://github.com/kivikakk/comrak/pull/721 |
| 218 |
* https://github.com/kivikakk/comrak/pull/722 |
| 219 |
* https://github.com/kivikakk/comrak/pull/723 |
| 220 |
* https://github.com/kivikakk/comrak/pull/724 |
| 221 |
* https://github.com/kivikakk/comrak/pull/725 |
| 222 |
* https://github.com/kivikakk/comrak/pull/726 |
| 223 |
* https://github.com/kivikakk/comrak/pull/730 |
| 224 |
* https://github.com/kivikakk/comrak/pull/733 |
| 225 |
* https://github.com/kivikakk/comrak/pull/734 |
| 226 |
* https://github.com/kivikakk/comrak/pull/735 |
| 227 |
* Upgrade to edition 2021, then 2024. (by @kivikakk in https://github.com/kivikakk/comrak/pull/731, https://github.com/kivikakk/comrak/pull/732) |
| 228 |
* The latter PR includes even more dependency updates (using the v3 resolver), using the latest versions possible on 1.85. |
| 229 |
|
| 230 |
Documentation: |
| 231 |
|
| 232 |
* Added a policy on LLM-generated code. (by @kivikakk in https://github.com/kivikakk/comrak/pull/718) |
| 233 |
|
| 234 |
Build changes: |
| 235 |
|
| 236 |
* Dependency updates to help building on LoongArch64. (by @kivikakk in https://github.com/kivikakk/comrak/pull/708) |
| 237 |
* Don't run the pathological test suite on RISC-V. (by @kivikakk in https://github.com/kivikakk/comrak/pull/710) |
| 238 |
* Turns out the Darwin builds were also linking to the Nix store! (by @kivikakk in https://github.com/kivikakk/comrak/pull/736) |
| 239 |
|
| 240 |
Behind the scenes: |
| 241 |
|
| 242 |
* Integrated CodSpeed benchmarks on PRs. (by @kivikakk in https://github.com/kivikakk/comrak/pull/715) |
| 243 |
|
| 244 |
|
| 245 |
Diff: https://github.com/kivikakk/comrak/compare/v0.49.0...v0.50.0 |
| 246 |
|
| 247 |
|
| 248 |
# [v0.49.0] - 2025-12-09 |
| 249 |
|
| 250 |
New APIs: |
| 251 |
|
| 252 |
* Support for Phoenix HEEx has been added! Comrak can now avoid interpreting the contents of HEEx tags, representing them in their own node type in the AST. (by @leandrocp in https://github.com/kivikakk/comrak/pull/693, https://github.com/kivikakk/comrak/pull/702) |
| 253 |
* Add sourcepos for the task item symbol (i.e. the `x` in `[x]`). (by @kivikakk in https://github.com/kivikakk/comrak/pull/705) |
| 254 |
|
| 255 |
Build changes: |
| 256 |
|
| 257 |
* Fix typos in repository and add typos CI config. (by @liamwhite in https://github.com/kivikakk/comrak/pull/691) |
| 258 |
* Promote clippy warns to errors in CI. (by @leandrocp in https://github.com/kivikakk/comrak/pull/701) |
| 259 |
|
| 260 |
Behind the scenes: |
| 261 |
|
| 262 |
* Clean up `find_special_char` logic for inlines. (by @liamwhite in https://github.com/kivikakk/comrak/pull/692) |
| 263 |
* Add `byte_matches` helper to simplify `get`/`map_or` chaining tests in parser. (by @liamwhite in https://github.com/kivikakk/comrak/pull/694) |
| 264 |
* Apply clippy suggestions. (by @leandrocp in https://github.com/kivikakk/comrak/pull/700) |
| 265 |
* DRY out the `create_formatter` macro a bit. (by @nberlette in https://github.com/kivikakk/comrak/pull/704) |
| 266 |
|
| 267 |
## New Contributors |
| 268 |
|
| 269 |
* @nberlette made their first contribution in https://github.com/kivikakk/comrak/pull/704 |
| 270 |
|
| 271 |
Diff: https://github.com/kivikakk/comrak/compare/v0.48.0...v0.49.0 |
| 272 |
|
| 273 |
|
| 274 |
# [v0.48.0] - 2025-11-13 |
| 275 |
|
| 276 |
The breaking changes are listed right at the top! Please note that AST content now represents `NUL` bytes (codepoint number zero) as they were in the input; these used to be translated to the lovely � character at the very beginning of the input process, presumably so the rest of the reference C parser didn't have to deal with the possibility of strings containing NUL bytes. We can do better, though, so let's! The � character is now emitted by our formatters in place of `NUL`, but if you use custom or manual formatters and emit any part of the AST content **directly** (without using `comrak::html::escape`, `context::html::escape_href`, or the same-named functions on `Context`), you may need to do the same translation yourself. |
| 277 |
|
| 278 |
We also no longer append a newline to the end of the file where there wasn't one originally, which meant a lot of places in the parser had to adapt to their strings not necessarily containing a newline before they ended. Careful review and extensive fuzzing should have squeaked out any unexpected overruns, but consider my eyes peeled for reports regarding this. (Ew.) We've cleaned up some sourcepos calculation which depended on this behaviour in odd ways, but there may yet be more to discover which our test suite didn't catch. |
| 279 |
|
| 280 |
Did you know November is [Trans Month](https://www.transmonth.org.au/)? I didn't! I'm guessing it's because Trans Awareness Week falls within it, and we've been having a pretty bad time of it rights-wise around the world lately! |
| 281 |
|
| 282 |
Happy Trans Month, and if you happen to typo it as Trans Moth, we can be happy about that too! 🏳️⚧️ ᖭི༏ᖫྀ |
| 283 |
|
| 284 |
Parser changes: |
| 285 |
|
| 286 |
* No longer translate `NUL` bytes into `U+FFFD REPLACEMENT CHARACTER` in the parse stage; do it in formatters instead. (by @kivikakk in https://github.com/kivikakk/comrak/pull/681) |
| 287 |
* This means the AST now contains `NUL` bytes where they were present in input, preserving the difference between `NUL` and literally-entered `�` characters. |
| 288 |
* No longer append a virtual newline at the end of the file where missing. (by @kivikakk in https://github.com/kivikakk/comrak/pull/682) |
| 289 |
* The spec allows a line to end with either a newline or EOF; the reference parser would assume any given input string will always have a terminating linefeed and forced that to be the case, and so Comrak used to. Comrak no longer does. |
| 290 |
* We also now handle line feed, carriage return, and carriage return plus line feed (as allow'd by the spec) without pretending they're all just a line feed, meaning e.g. sourcepos for softbreaks now correctly spans two bytes when it was produced by a carriage return plus line feed. |
| 291 |
|
| 292 |
Changed APIs: |
| 293 |
|
| 294 |
* Remove mandatory space before fenced codeblock info string in CommonMark output. (by @kivikakk in https://github.com/kivikakk/comrak/pull/686) |
| 295 |
* Write out `%25` in hrefs where not part of a percent-encode sequence. (by @kivikakk in https://github.com/kivikakk/comrak/pull/687) |
| 296 |
* We used to leave any `%` character alone, such that `[link](%%20)` would roundtrip without change. It now roundtrips to `[link](%25%20)`. |
| 297 |
* Relaxed tasklist matching now supports a full Unicode scalar for the character between the `[…]`, and no longer turns single-byte UTF-8 characters into the Unicode codepoint numbered at the UTF-8 byte (!). (by @kivikakk in https://github.com/kivikakk/comrak/pull/689) |
| 298 |
|
| 299 |
New APIs: |
| 300 |
|
| 301 |
* Add `highlight` extension, `==for highlights==`! These render with `<mark>` in the HTML formatter. (by @pferreir in https://github.com/kivikakk/comrak/pull/672) |
| 302 |
* Add `comrak::Node<'a>` as an alias for `comrak::nodes::Node<'a>`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/673) |
| 303 |
* Add `comrak::Arena<'a>` as an alias for `typed_arena::Arena<comrak::nodes::AstNode<'a>>`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/675) |
| 304 |
* Add `From<(LineColumn, LineColumn)>` impl for `Sourcepos`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/675) |
| 305 |
* Make `comrak::nodes::NodeValue::xml_node_name` public, when you want a handy-to-access name for a node type. (by @kivikakk in https://github.com/kivikakk/comrak/pull/673) |
| 306 |
* Add `options.parse.leave_footnote_definitions`; this option causes footnote definitions to not be relocated to the bottom of the document, and unused references not to be garbage collected, for use with custom formatters. (by @kivikakk in https://github.com/kivikakk/comrak/pull/673) |
| 307 |
|
| 308 |
Bug fixes: |
| 309 |
|
| 310 |
* Fix relaxed autolink email in footnote edge case/panic. (by @kivikakk in https://github.com/kivikakk/comrak/pull/677) |
| 311 |
* Prevent unexpected post-processing, such as `\[x]` still being eligible for tasklist inclusion despite the escaped `[`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/679) |
| 312 |
|
| 313 |
Performance: |
| 314 |
|
| 315 |
* Simplify internal feed function, no longer requiring any allocation before the block parser. (by @kivikakk in https://github.com/kivikakk/comrak/pull/679, https://github.com/kivikakk/comrak/pull/681) |
| 316 |
* This is possible due to not translating `NUL` and not appending a virtual EOF newline; compare [before](https://github.com/kivikakk/comrak/blob/4997b3f0579fadc24d68d37b69a6ae1fea302289/src/parser/mod.rs#L128-L214) and [after](https://github.com/kivikakk/comrak/blob/95fc43bc84e3069a832c8c2ed01c6cda5e2e7fd6/src/parser/mod.rs#L124-L165). |
| 317 |
* Don't buffer CommonMark output unless necessary. (by @kivikakk in https://github.com/kivikakk/comrak/pull/684) |
| 318 |
* The full output was always buffered in a string before being written to the destination, which in many cases is going to be another string. Buffering is now done only to the extent required by output options, which often will be "not at all." |
| 319 |
* Use SIMD for core line feed process. (by @kivikakk in https://github.com/kivikakk/comrak/pull/688) |
| 320 |
|
| 321 |
Build changes: |
| 322 |
|
| 323 |
* We now build Linux release binaries against musl, making them actually useful for anyone not running my exact Nix build :') (by @kivikakk in https://github.com/kivikakk/comrak/pull/671) |
| 324 |
* The benchmark CI job no longer causes the whole PR to fail checks if it can't post its comment. (by @kivikakk in https://github.com/kivikakk/comrak/pull/674) |
| 325 |
|
| 326 |
Behind the scenes: |
| 327 |
|
| 328 |
* Factor out `inlines::Scanner`, reducing some needless allocations. (by @kivikakk in https://github.com/kivikakk/comrak/pull/675) |
| 329 |
* The `all_options` fuzzer now fuzzes *across* all options, and not just with most of them switched on. (by @kivikakk in https://github.com/kivikakk/comrak/pull/678) |
| 330 |
|
| 331 |
## New Contributors |
| 332 |
|
| 333 |
* @pferreir made their first contribution in https://github.com/kivikakk/comrak/pull/672 |
| 334 |
|
| 335 |
Diff: https://github.com/kivikakk/comrak/compare/v0.47.0...v0.48.0 |
| 336 |
|
| 337 |
|
| 338 |
# [v0.47.0] - 2025-10-30 |
| 339 |
|
| 340 |
Martin Chrástek has fixed _all known sourcepos issues_ in Comrak, while closing a number of other bugs at the same time! I'm so happy. |
| 341 |
|
| 342 |
New APIs: |
| 343 |
|
| 344 |
* `NodeCodeBlock` now has a `closed` property. (by @Martin005 in https://github.com/kivikakk/comrak/pull/661) |
| 345 |
* `NodeHeading` now has a `closed` property, for closed ATX-style headings. (by @Martin005 in https://github.com/kivikakk/comrak/pull/665) |
| 346 |
|
| 347 |
Bug fixes: |
| 348 |
|
| 349 |
* Source position information for lists and their children is fixed. (by @Martin005 in https://github.com/kivikakk/comrak/pull/666) |
| 350 |
* Source position information for unclosed fenced code blocks is fixed. (by @Martin005 in https://github.com/kivikakk/comrak/pull/661) |
| 351 |
* `Escaped` and `EscapedTag` no longer fail AST validation when formatting as CommonMark with debug assertions. (by @kivikakk in https://github.com/kivikakk/comrak/pull/662, https://github.com/kivikakk/comrak/pull/664) |
| 352 |
|
| 353 |
Build changes: |
| 354 |
|
| 355 |
* The fuzzer now also runs on CommonMark and XML output formats. (by @kivikakk in https://github.com/kivikakk/comrak/pull/663) |
| 356 |
|
| 357 |
Diff: https://github.com/kivikakk/comrak/compare/v0.46.0...v0.47.0 |
| 358 |
|
| 359 |
|
| 360 |
# [v0.46.0] - 2025-10-28 |
| 361 |
|
| 362 |
Please note the MSRV has been bumped from 1.65 to 1.70; see [the pull request](https://github.com/kivikakk/comrak/pull/649) for more details. It's a kind of sticky and awkward situation — thanks to the inevitability of Progress — with no particularly clean solution. (wherein telling GCC 15 users "sorry it just won't build from source for you without messing with dependencies" is not a solution.) |
| 363 |
|
| 364 |
Security: |
| 365 |
|
| 366 |
* Footnote resolution no longer recurses over the document tree; on documents with deeply nested elements, this could cause a stack overflow, with resultant denial of service. (by @kivikakk in https://github.com/kivikakk/comrak/pull/659) |
| 367 |
* Inline footnotes are restricted to a depth of 5 for similar reasons. An iterative rewrite here to avoid a limit is possible, but for now I'm hoping we can all pretend to be responsible adult human beings and limit our recursive inline footnote usage accordingly. (PRs welcome tho, non-human users are very welcome!) (by @kivikakk in https://github.com/kivikakk/comrak/pull/659) |
| 368 |
|
| 369 |
Parser changes: |
| 370 |
|
| 371 |
* U+2069 POP DIRECTIONAL ISOLATE will be treated as terminating an autolink, rather than included as part of the link, making autolinks much easier to use correctly in RTL text. (by @SethFalco in https://github.com/kivikakk/comrak/pull/654) |
| 372 |
* HTML start condition 4 is correctly detected when non-capital letters follow "<!". (by @kivikakk in https://github.com/kivikakk/comrak/pull/658) |
| 373 |
|
| 374 |
New APIs: |
| 375 |
|
| 376 |
* Discord-style subtext support is added as the `subtext` extension. (by @Kuuuube in https://github.com/kivikakk/comrak/pull/648, https://github.com/kivikakk/comrak/pull/650) |
| 377 |
|
| 378 |
Bug fixes: |
| 379 |
|
| 380 |
* Source position information is corrected for description lists, HTML blocks, multiline block quotes, links with newlines following the destination, tables with leading indentation, and escaped character spans. (by @Martin005 in https://github.com/kivikakk/comrak/pull/646, https://github.com/kivikakk/comrak/pull/651, https://github.com/kivikakk/comrak/pull/652, https://github.com/kivikakk/comrak/pull/653, https://github.com/kivikakk/comrak/pull/656, https://github.com/kivikakk/comrak/pull/657) |
| 381 |
* `escaped_char_span` users can now successfully format to CommonMark with debug assertions enabled. These ASTs previously did not validate, which currently is enabled experimentally only in CommonMark output in debug. (by @kivikakk in https://github.com/kivikakk/comrak/pull/659) |
| 382 |
|
| 383 |
Build changes: |
| 384 |
|
| 385 |
* Comrak's MSRV is bumped from 1.65 to 1.70. (by @kivikakk in https://github.com/kivikakk/comrak/pull/649) |
| 386 |
|
| 387 |
## New Contributors |
| 388 |
|
| 389 |
* @Martin005 made their first contribution in https://github.com/kivikakk/comrak/pull/646 |
| 390 |
* @Kuuuube made their first contribution in https://github.com/kivikakk/comrak/pull/648 |
| 391 |
* @SethFalco made their first contribution in https://github.com/kivikakk/comrak/pull/654 |
| 392 |
|
| 393 |
Diff: https://github.com/kivikakk/comrak/compare/v0.45.0...v0.46.0 |
| 394 |
|
| 395 |
|
| 396 |
# [v0.45.0] - 2025-10-23 |
| 397 |
|
| 398 |
Welcome to v0.45.0! This is a big update, much of them part of from [rc.1 from last week](https://github.com/kivikakk/comrak/releases/tag/v0.45.0-rc.1). More context on the size of the update in the changelog there. |
| 399 |
|
| 400 |
The biggest library user-facing changes are ergonomic: `Node<'a>` instead of `&'a AstNode<'a>`, is nice, and so likewise `node.data()` instead of `node.data.borrow()`. They're small, but I appreciate them a lot in my own work. |
| 401 |
|
| 402 |
You'll also notice more bovine creatures in the Comrak pasture: there's a few `Cow<str>` instead of `String`, such as in `NodeValue::Text`. At most an extra `.into()` will be required; take note if you use any `'static str`, as they'll no longer need to be heap-allocated. Some `Box`es have been added, too, to reduce the size of every `NodeValue`. Let the types guide you. |
| 403 |
|
| 404 |
Other than this, the options have been put in their own module (`comrak::options`), and a lot of things generally cleaned up. Read below for all the deets! Here's the final performance comparison to v0.44.0 on aarch64: |
| 405 |
|
| 406 |
``` |
| 407 |
Benchmark 1: ./bench.sh ./comrak-0.44.0 |
| 408 |
Time (mean ± σ): 88.1 ms ± 1.9 ms [User: 71.2 ms, System: 17.8 ms] |
| 409 |
Range (min … max): 86.2 ms … 93.2 ms 31 runs |
| 410 |
|
| 411 |
Benchmark 2: ./bench.sh ./comrak-0.45.0 |
| 412 |
Time (mean ± σ): 67.0 ms ± 1.2 ms [User: 51.2 ms, System: 17.0 ms] |
| 413 |
Range (min … max): 65.2 ms … 70.0 ms 42 runs |
| 414 |
|
| 415 |
Summary |
| 416 |
./bench.sh ./comrak-0.45.0 ran |
| 417 |
1.32 ± 0.04 times faster than ./bench.sh ./comrak-0.44.0 |
| 418 |
``` |
| 419 |
|
| 420 |
Be well! |
| 421 |
|
| 422 |
Parser changes: |
| 423 |
|
| 424 |
* Runs of more than two `~` are no longer recognised as valid delimiters, meaning they will not prevent strikethrough recognition when they occur within correct delimiters. See the PR for discussion. (by @miketheman in https://github.com/kivikakk/comrak/pull/635) |
| 425 |
* This does not impact spec compatibility, matches `cmark-gfm`, and follows the intent of the original implementation and implementor (hi!). |
| 426 |
|
| 427 |
Changed APIs: |
| 428 |
|
| 429 |
* `r#unsafe` is used instead of `unsafe_`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/640) |
| 430 |
* `--gemojis` is renamed to `--gemoji`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/641) |
| 431 |
* `NodeValue::Text` now contains a `Cow<'static, str>` instead of a `String`. This is a pretty major change, but means we can now create text nodes with static content without duplicating the string on the heap. This particularly benefits smart quotes and HTML entity resolution. (by @kivikakk in https://github.com/kivikakk/comrak/pull/627) |
| 432 |
* Adapting to this change usually means nothing on the read-only side (you can use it as a `&str` without issues); to write in-place, use `.to_mut()` on the `Cow` to get a `&mut String`. To assign, use `.into()` on a `&str` or `String`, like `NodeValue::Text("moo".into())`. |
| 433 |
* `NodeValue::text()` now returns a `&str`. It used to return a `&String` (!). |
| 434 |
* `NodeValue::text_mut()` now returns a `&mut Cow<'static, str>`, instead of a `&mut String`. This permits writing a borrowed reference. |
| 435 |
* I am experimenting with parameterising the lifetime on the `Cow`; it'd be amazing to refer continuously to the input where possible. |
| 436 |
* `NodeValue`'s `CodeBlock`, `Table`, `Link`, `Image`, `ShortCode` and `Alert` variants' payloads are now boxed. (by @kivikakk in https://github.com/kivikakk/comrak/pull/632) |
| 437 |
* Adapting to this change usually means adding a `Box::new` call when constructing these nodes, and on matches, pulling the box out and then just dereferencing it directly (e.g. `NodeValue::Table(nt) => &nt.alignments` instead of `NodeValue::Table(NodeTable { ref alignments })`. |
| 438 |
* These payloads were larger than average, increasing the size of every node considerably. The changes reduce an `Ast` to 128 bytes, and a full `AstNode<'_>` to 176 bytes. |
| 439 |
* This produces a performance sweet spot: boxing the whole `NodeValue` results in worse performance than doing nothing at all. This change appreciably improves matters. |
| 440 |
* We now assert the size of a node during build to ensure future payload changes don't increase the total size of an `Ast`. |
| 441 |
* Options now live in `comrak::options`. Structs have been renamed to remove `Options` from their name: `comrak::RenderOptions` is now `comrak::options::Render`, etc. The old names are marked deprecated. (@kivikakk in https://github.com/kivikakk/comrak/pull/636) |
| 442 |
* Traits cannot be aliased [yet](https://github.com/rust-lang/rust/issues/41517) :( `URLRewriter` and `BrokenLinkCallback` have been moved, without a deprecation period. |
| 443 |
* `SyntaxHighlighterAdapter`'s `attributes` arguments now take `HashMap<&'static str, Cow<'s, str>>`; they used to take `HashMap<String, String>`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/633) |
| 444 |
* `html::write_opening_tag` can now take different `AsRef<str>` types for the attribute key and value. |
| 445 |
* `parse_document_with_broken_link_callback` has been removed! This entrypoint has been deprecated since 0.25.0. (by @kivikakk in https://github.com/kivikakk/comrak/pull/623) |
| 446 |
* `options.render.ignore_setext` was moved to `options.parse.ignore_setext`, as its effect takes place only in the parse stage. (by @kivikakk in https://github.com/kivikakk/comrak/pull/623) |
| 447 |
* `nodes::can_contain_type` is now `Node::can_contain_type`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/625) |
| 448 |
|
| 449 |
|
| 450 |
New APIs: |
| 451 |
|
| 452 |
* `node.data()` and `node.data_mut()` are added as short-hand for `node.data.borrow()` and `node.data.borrow_mut()` respectively. (by @kivikakk in https://github.com/kivikakk/comrak/pull/643) |
| 453 |
* `comrak::nodes::Node<'a>` is introduced as an alias for `&'a comrak::nodes::AstNode<'a>`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/627) |
| 454 |
* `options.parse.tasklist_in_table` added: parse a tasklist item if it's the only content of a table cell. (by @kivikakk in https://github.com/kivikakk/comrak/pull/622) |
| 455 |
|
| 456 |
Performance: |
| 457 |
|
| 458 |
* Inline content is transferred to Text nodes without copying where possible. (by @kivikakk in https://github.com/kivikakk/comrak/pull/642). |
| 459 |
* Have you looked at your 7 year old code lately? A detail in the C-to-Rust translation meant essentially every line of input was being copied completely unnecessarily at the very beginning of the line processing stage. This no longer happens. We regret the error. (by @kivikakk in https://github.com/kivikakk/comrak/pull/629) |
| 460 |
* Preprocess entity data at build-time so we don't spend time doing a linear search over an unsorted array, some of which we will never match. (by @kivikakk in https://github.com/kivikakk/comrak/pull/631) |
| 461 |
* Inline content is consumed by the inline processor, instead of being borrowed by it and retained in memory indefinitely. (by @kivikakk in https://github.com/kivikakk/comrak/pull/631) |
| 462 |
* Don't try to do better than the stdlib at guessing buffer sizes; it's very good at it. (by @kivikakk in https://github.com/kivikakk/comrak/pull/626) |
| 463 |
* Use `str` internally in block and inline processing, eliminating many UTF-8 rechecks. The `strings` module actually operates on strings now. (by @kivikakk in https://github.com/kivikakk/comrak/pull/626) |
| 464 |
* Many, many needless clones have been removed in almost every subsystem. |
| 465 |
|
| 466 |
Dependency updates: |
| 467 |
|
| 468 |
* `memchr` removed from `Cargo.toml`; it wasn't used directly, though it still is included unconditionally due to `caseless`. (by @kivikakk in https://github.com/kivikakk/comrak/pull/630) |
| 469 |
* `slug` is moved to a development-only dependency; it's only used in an example. (by @kivikakk in https://github.com/kivikakk/comrak/pull/630) |
| 470 |
* `jetscii` is added for faster string searching, including SIMD on x86_64. (by @kivikakk in https://github.com/kivikakk/comrak/pull/630) |
| 471 |
* I'm [experimenting](https://github.com/kivikakk/comrak/pull/634) with aarch64 SIMD. |
| 472 |
|
| 473 |
Documentation: |
| 474 |
|
| 475 |
* The CLI help text has been copy-edited to a consistent style. (by @kivikakk in https://github.com/kivikakk/comrak/pull/641) |
| 476 |
* The `README` example code is updated to build with recent API changes. (by @kivikakk in https://github.com/kivikakk/comrak/pull/621) |
| 477 |
|
| 478 |
Build changes: |
| 479 |
|
| 480 |
* `shortcodes` is enabled by default (but still optional) for CLI builds. (by @kivikakk in https://github.com/kivikakk/comrak/pull/641) |
| 481 |
* `syntect` is now optional (but still default) in CLI builds. (by @kivikakk in https://github.com/kivikakk/comrak/pull/624) |
| 482 |
|
| 483 |
Behind the scenes: |
| 484 |
|
| 485 |
* Much of the block parser code has been re-organised, and many C-isms from the original port have been refactored into readable Rust. (by @kivikakk in https://github.com/kivikakk/comrak/pull/627) |
| 486 |
* Likewise the inline parser has been re-organised. (by @kivikakk in https://github.com/kivikakk/comrak/pull/644) |
| 487 |
* All `unsafe` blocks now have a `SAFETY` comment describing why their actions are safe. |
| 488 |
|
| 489 |
## New Contributors |
| 490 |
|
| 491 |
* @miketheman made their first contribution in https://github.com/kivikakk/comrak/pull/635 |
| 492 |
|
| 493 |
Diff: https://github.com/kivikakk/comrak/compare/v0.44.0...v0.45.0 |
| 494 |
|
| 495 |
|
| 496 |
# [v0.44.0] - 2025-10-14 |
| 497 |
|
| 498 |
Parser changes: |
| 499 |
|
| 500 |
* Autolink validation is now stricter in the default mode, to maintain conformance with the GitHub Flavored Markdown autolinks extension spec. Those parses which previously worked but no longer do --- such as `http://localhost` (!), `www.com` (!?), or `https://` (!?!) --- are now part of the `relaxed_autolinks` option. See more discussion in the PR. (by @chamlis in https://github.com/kivikakk/comrak/pull/618) |
| 501 |
|
| 502 |
New APIs: |
| 503 |
|
| 504 |
* You can write footnotes with their body inline by enabling the `inline_footnotes` extension and using the syntax `^[footnote content]` (by @sheremetyev in https://github.com/kivikakk/comrak/pull/619) |
| 505 |
|
| 506 |
## New Contributors |
| 507 |
|
| 508 |
* @sheremetyev made their first contribution in https://github.com/kivikakk/comrak/pull/619 |
| 509 |
* @chamlis made their first contribution in https://github.com/kivikakk/comrak/pull/618 |
| 510 |
|
| 511 |
Diff: https://github.com/kivikakk/comrak/compare/v0.43.0...v0.44.0 |
| 512 |
|
| 513 |
|
| 514 |
# [v0.43.0] - 2025-09-29 |
| 515 |
|
| 516 |
Parser changes: |
| 517 |
|
| 518 |
* `superscript` or `subscript` extensions only: punctuation following a superscript or subscript delimiter no longer disqualifies the delimiter from being considered left-flanking, such that `e^-i^` and `n~-i~` now parse as superscript or subscript respectively (by @kivikakk in https://github.com/kivikakk/comrak/pull/593) |
| 519 |
|
| 520 |
Changed APIs: |
| 521 |
|
| 522 |
* `html::format_document`, `xml::format_document`, `cm::format_document` and friends now take an `std::fmt::Write` as their `output` argument, instead of an `std::io::Write`, to avoid revalidating UTF-8 (by @kivikakk in https://github.com/kivikakk/comrak/pull/601) |
| 523 |
* bin: allow `--header-ids ''` for prefix-less headers (by @kivikakk in https://github.com/kivikakk/comrak/pull/610) |
| 524 |
|
| 525 |
New APIs: |
| 526 |
|
| 527 |
* Add CJK Friendly Emphasis to CLI option (by @tats-u in https://github.com/kivikakk/comrak/pull/607) |
| 528 |
|
| 529 |
Documentation updates: |
| 530 |
|
| 531 |
* Introduce `cargo binstall` by (@tats-u in https://github.com/kivikakk/comrak/pull/608) |
| 532 |
* www: add (by @kivikakk in https://github.com/kivikakk/comrak/pull/611) |
| 533 |
|
| 534 |
Diff: https://github.com/kivikakk/comrak/compare/v0.42.0...v0.43.0 |
| 535 |
|
| 536 |
|
| 537 |
# [v0.42.0] - 2025-09-24 |
| 538 |
|
| 539 |
New APIs: |
| 540 |
|
| 541 |
* `cm::escape_inline` (aliased at crate level as `escape_commonmark_inline`) |
| 542 |
is added; escapes input text suitable for inclusion in a CommonMark |
| 543 |
document where regular inline processing takes place. (by @kivikakk in |
| 544 |
https://github.com/kivikakk/comrak/pull/602) |
| 545 |
* `cm::escape_link_destination` (aliased at crate level as |
| 546 |
`escape_commonmark_link_destination`) is added; escapes input URL suitable |
| 547 |
for use as a link destination in a CommonMark document. (by @kivikakk in |
| 548 |
https://github.com/kivikakk/comrak/pull/605) |
| 549 |
|
| 550 |
Changed APIs: |
| 551 |
|
| 552 |
* `html::collect_text` now returns a `String`. `html::collect_text_append` is |
| 553 |
added if you still want to start with your own (`String`) buffer. (by |
| 554 |
@kivikakk in https://github.com/kivikakk/comrak/pull/600) |
| 555 |
* There was no particular reason for this populating a `Vec<u8>` instead of a |
| 556 |
`String`; it was just old. |
| 557 |
* `Anchorizer::anchorizer` now takes `&str` instead of a `String`. (by |
| 558 |
@kivikakk in https://github.com/kivikakk/comrak/pull/603) |
| 559 |
* As above. |
| 560 |
|
| 561 |
Updates: |
| 562 |
|
| 563 |
* Update `is_cjk` in CJK Friendly Emphasis to Unicode 17. (by @tats-u in |
| 564 |
https://github.com/kivikakk/comrak/pull/598) |
| 565 |
|
| 566 |
Behind the scenes: |
| 567 |
|
| 568 |
* Rename a bunch of "nch" to "nh". (by @kivikakk in |
| 569 |
https://github.com/kivikakk/comrak/pull/599) |
| 570 |
|
| 571 |
Diff: https://github.com/kivikakk/comrak/compare/v0.41.1...v0.42.0 |
| 572 |
|
| 573 |
|
| 574 |
# [v0.41.1] - 2025-09-14 |
| 575 |
|
| 576 |
Bug fixes: |
| 577 |
|
| 578 |
* Fix the range of non-emoji general purpose variation selector by @tats-u in https://github.com/kivikakk/comrak/pull/596 |
| 579 |
|
| 580 |
Stability: |
| 581 |
|
| 582 |
* html: remove some panics on unusual ASTs, and document others. by @kivikakk in https://github.com/kivikakk/comrak/pull/589 |
| 583 |
|
| 584 |
Behind the scenes: |
| 585 |
|
| 586 |
* Cleanup fuzzers, add unresolved `relaxed_autolink_email_in_footnote` test by @Mrmaxmeier in https://github.com/kivikakk/comrak/pull/594 |
| 587 |
* build(deps): bump actions/checkout from 4 to 5 by @dependabot[bot] in https://github.com/kivikakk/comrak/pull/590 |
| 588 |
|
| 589 |
## New Contributors |
| 590 |
|
| 591 |
* @Mrmaxmeier made their first contribution in https://github.com/kivikakk/comrak/pull/594 |
| 592 |
|
| 593 |
Diff: https://github.com/kivikakk/comrak/compare/v0.41.0...v0.41.1 |
| 594 |
|
| 595 |
|
| 596 |
# [v0.41.0] - 2025-08-09 |
| 597 |
|
| 598 |
New features: |
| 599 |
|
| 600 |
* Add CJK friendly emphasis extension by @tats-u in https://github.com/kivikakk/comrak/pull/582 |
| 601 |
* Add CJK friendly emphasis to README by @tats-u in https://github.com/kivikakk/comrak/pull/583 |
| 602 |
|
| 603 |
Build changes: |
| 604 |
|
| 605 |
* Use syntect's default-fancy feature for ios by @tvanderstad in https://github.com/kivikakk/comrak/pull/585 |
| 606 |
|
| 607 |
## New Contributors |
| 608 |
|
| 609 |
* @tats-u made their first contribution in https://github.com/kivikakk/comrak/pull/582 |
| 610 |
* @tvanderstad made their first contribution in https://github.com/kivikakk/comrak/pull/585 |
| 611 |
|
| 612 |
Diff: https://github.com/kivikakk/comrak/compare/v0.40.0...v0.41.0 |
| 613 |
|
| 614 |
|
| 615 |
# [v0.40.0] - 2025-07-18 |
| 616 |
|
| 617 |
Reverts: |
| 618 |
|
| 619 |
* "Fix header-ids accessibility" was reverted in https://github.com/kivikakk/comrak/commit/2cb6188bfb4c5d69bf55c73c19b2049e9dfe5dba |
| 620 |
* See discussion at https://github.com/kivikakk/comrak/pull/574#issuecomment-3046307805 for details. |
| 621 |
|
| 622 |
Bug fixes: |
| 623 |
|
| 624 |
* html: don't escape IPv6 address square bracket delimiters in links. by @kivikakk in https://github.com/kivikakk/comrak/pull/578 |
| 625 |
|
| 626 |
New APIs: |
| 627 |
|
| 628 |
* Syntect syntax highlighting: Make a CSS class prefix configurable. by @SteveBinary in https://github.com/kivikakk/comrak/pull/580 |
| 629 |
|
| 630 |
## New Contributors |
| 631 |
|
| 632 |
* @SteveBinary made their first contribution in https://github.com/kivikakk/comrak/pull/580 |
| 633 |
|
| 634 |
Diff: https://github.com/kivikakk/comrak/compare/v0.39.1...v0.40.0 |
| 635 |
|
| 636 |
|
| 637 |
# [v0.39.1] - 2025-06-27 |
| 638 |
|
| 639 |
Bug fixes: |
| 640 |
|
| 641 |
* Fix header-ids accessibility by @davemackintosh in https://github.com/kivikakk/comrak/pull/574 |
| 642 |
* Recursively join text nodes inside links, images, and wikilinks by @JamieMagee in https://github.com/kivikakk/comrak/pull/575 |
| 643 |
|
| 644 |
## New Contributors |
| 645 |
|
| 646 |
* @davemackintosh made their first contribution in https://github.com/kivikakk/comrak/pull/574 |
| 647 |
* @JamieMagee made their first contribution in https://github.com/kivikakk/comrak/pull/575 |
| 648 |
|
| 649 |
Diff: https://github.com/kivikakk/comrak/compare/v0.39.0...v0.39.1 |
| 650 |
|
| 651 |
|
| 652 |
# [v0.39.0] - 2025-05-02 |
| 653 |
|
| 654 |
New APIs: |
| 655 |
|
| 656 |
* Make dangerous_url public by @digitalmoksha in https://github.com/kivikakk/comrak/pull/564 |
| 657 |
|
| 658 |
Diff: https://github.com/kivikakk/comrak/compare/v0.38.0...v0.39.0 |
| 659 |
|
| 660 |
|
| 661 |
# [v0.38.0] - 2025-04-05 |
| 662 |
|
| 663 |
Bug fixes: |
| 664 |
|
| 665 |
* Only delete parent if the node has no siblings by @digitalmoksha in https://github.com/kivikakk/comrak/pull/559 |
| 666 |
|
| 667 |
New features/APIs: |
| 668 |
|
| 669 |
* html: add user data to context. by @kivikakk in https://github.com/kivikakk/comrak/pull/555 |
| 670 |
|
| 671 |
Coming of age???: |
| 672 |
|
| 673 |
* experimental-inline-sourcepos: not really experimental any more! by @kivikakk in https://github.com/kivikakk/comrak/pull/560 |
| 674 |
|
| 675 |
Diff: https://github.com/kivikakk/comrak/compare/v0.37.0...v0.38.0 |
| 676 |
|
| 677 |
|
| 678 |
# [v0.37.0] - 2025-03-25 |
| 679 |
|
| 680 |
Bug fixes: |
| 681 |
|
| 682 |
* add --all-features to CI matrix, add missing shortcode case. by @charlottia in https://github.com/kivikakk/comrak/pull/546 |
| 683 |
* Inline sourcepos fixes. by @kivikakk in https://github.com/kivikakk/comrak/pull/542 |
| 684 |
|
| 685 |
Documentation: |
| 686 |
|
| 687 |
* docs: add mdex (elixir bindings) in the list of related projects by @leandrocp in https://github.com/kivikakk/comrak/pull/547 |
| 688 |
* Add Commonmarker to related projects by @gjtorikian in https://github.com/kivikakk/comrak/pull/548 |
| 689 |
|
| 690 |
Diff: https://github.com/kivikakk/comrak/compare/v0.36.0...v0.37.0 |
| 691 |
|
| 692 |
|
| 693 |
# [v0.36.0] - 2025-02-28 |
| 694 |
|
| 695 |
Bug fixes: |
| 696 |
|
| 697 |
* Stop at first suitable $ at inline math by @Bubbis in https://github.com/kivikakk/comrak/pull/533 |
| 698 |
|
| 699 |
New features/APIs: |
| 700 |
|
| 701 |
* Create custom HTML formatters. by @kivikakk in https://github.com/kivikakk/comrak/pull/540 |
| 702 |
* make `AlertType` methods public by @fiji-flo in https://github.com/kivikakk/comrak/pull/532 |
| 703 |
* commonmark: experimental minimize by @charlottia in https://github.com/kivikakk/comrak/pull/523 |
| 704 |
|
| 705 |
Behind the scenes: |
| 706 |
|
| 707 |
* tests: don't let sourcepos stand in the way of roundtrip tests. by @kivikakk in https://github.com/kivikakk/comrak/pull/543 |
| 708 |
* Refactor html output functions by @digitalmoksha in https://github.com/kivikakk/comrak/pull/529 |
| 709 |
* Write a sourcepos test for each `NodeValue` variant by @SamWilsn in https://github.com/kivikakk/comrak/pull/498 |
| 710 |
|
| 711 |
Documentation: |
| 712 |
|
| 713 |
* docs: add Python bindings repo and PyPI links to Related Projects by @lmmx in https://github.com/kivikakk/comrak/pull/539 |
| 714 |
|
| 715 |
## New Contributors |
| 716 |
|
| 717 |
* @Bubbis made their first contribution in https://github.com/kivikakk/comrak/pull/533 |
| 718 |
* @lmmx made their first contribution in https://github.com/kivikakk/comrak/pull/539 |
| 719 |
|
| 720 |
Diff: https://github.com/kivikakk/comrak/compare/v0.35.0...v0.36.0 |
| 721 |
|
| 722 |
|
| 723 |
# [v0.35.0] - 2025-01-23 |
| 724 |
|
| 725 |
* Use CSS class `markdown-alert` instead of `alert` by @digitalmoksha in https://github.com/kivikakk/comrak/pull/524 |
| 726 |
|
| 727 |
Diff: https://github.com/kivikakk/comrak/compare/v0.34.0...v0.35.0 |
| 728 |
|
| 729 |
|
| 730 |
# [v0.34.0] - 2025-01-21 |
| 731 |
|
| 732 |
Admonition special! |
| 733 |
|
| 734 |
* Add GitHub style alerts / admonitions by @digitalmoksha in https://github.com/kivikakk/comrak/pull/519 |
| 735 |
* Enable GitLab multiline alerts by @digitalmoksha in https://github.com/kivikakk/comrak/pull/521 |
| 736 |
|
| 737 |
Diff: https://github.com/kivikakk/comrak/compare/v0.33.0...v0.34.0 |
| 738 |
|
| 739 |
|
| 740 |
# [v0.33.0] - 2025-01-04 |
| 741 |
|
| 742 |
Happy new year! Thanks to @nicoburns for these changes, enabling much faster |
| 743 |
compiles if you don't need the builders! |
| 744 |
|
| 745 |
* Eliminate `regex` and `once_cell` dependencies. by @nicoburns in https://github.com/kivikakk/comrak/pull/514 |
| 746 |
* Make bon builders optional by @nicoburns in https://github.com/kivikakk/comrak/pull/515 |
| 747 |
* Make options structs exhaustive by @nicoburns in https://github.com/kivikakk/comrak/pull/516 |
| 748 |
|
| 749 |
Diff: https://github.com/kivikakk/comrak/compare/v0.32.0...v0.33.0 |
| 750 |
|
| 751 |
|
| 752 |
# [v0.32.0] - 2024-12-17 |
| 753 |
|
| 754 |
* rust-toolchain: remove by @charlottia in https://github.com/kivikakk/comrak/pull/493 |
| 755 |
* Account for front matter when calculating `sourcepos` by @SamWilsn in https://github.com/kivikakk/comrak/pull/494 |
| 756 |
* callbacks: constrain to input lifetime by @liamwhite in https://github.com/kivikakk/comrak/pull/499 |
| 757 |
* Refactor open_new_blocks by @digitalmoksha in https://github.com/kivikakk/comrak/pull/505 |
| 758 |
* Refactors open_new_blocks by lifting out handlers by @digitalmoksha in https://github.com/kivikakk/comrak/pull/506 |
| 759 |
* Make `wikilinks_title_after_pipe` override `wikilinks_title_before_pipe` by @SamWilsn in https://github.com/kivikakk/comrak/pull/500 |
| 760 |
* Detect ending front matter delimiter at EOF by @kivikakk in https://github.com/kivikakk/comrak/pull/508 |
| 761 |
* Add Raw Node by @wakairo in https://github.com/kivikakk/comrak/pull/511 |
| 762 |
|
| 763 |
## New Contributors |
| 764 |
|
| 765 |
* @charlottia made their first contribution in https://github.com/kivikakk/comrak/pull/493 |
| 766 |
* @SamWilsn made their first contribution in https://github.com/kivikakk/comrak/pull/494 |
| 767 |
* @wakairo made their first contribution in https://github.com/kivikakk/comrak/pull/511 |
| 768 |
|
| 769 |
Diff: https://github.com/kivikakk/comrak/compare/v0.31.0...v0.32.0 |
| 770 |
|
| 771 |
|
| 772 |
# [v0.31.0] - 2024-11-26 |
| 773 |
|
| 774 |
* Enhance description lists by @digitalmoksha in https://github.com/kivikakk/comrak/pull/462 |
| 775 |
|
| 776 |
Diff: https://github.com/kivikakk/comrak/compare/v0.30.0...v0.31.0 |
| 777 |
|
| 778 |
|
| 779 |
# [v0.30.0] - 2024-11-22 |
| 780 |
|
| 781 |
* Add `task-list-item` class to task list items by @nicoburns in https://github.com/kivikakk/comrak/pull/468 |
| 782 |
* Add option for specifying a minimum width of ordered lists by @edwar4rd in https://github.com/kivikakk/comrak/pull/465 |
| 783 |
* Use `bon` for an infallible and compile-time-checked builder by @Veetaha in https://github.com/kivikakk/comrak/pull/466 |
| 784 |
* Add support for image and link URL rewriting by @liamwhite in https://github.com/kivikakk/comrak/pull/481 |
| 785 |
* Unwrap Mutex from broken_link_callback by @liamwhite in https://github.com/kivikakk/comrak/pull/484 |
| 786 |
* Prevent panic in format_item by @silverpill in https://github.com/kivikakk/comrak/pull/486 |
| 787 |
* Bump `bon` version to 3.0 by @Veetaha in https://github.com/kivikakk/comrak/pull/487 |
| 788 |
* Add support for subscript extension by @liamwhite in https://github.com/kivikakk/comrak/pull/488 |
| 789 |
* Add macro for character tables by @liamwhite in https://github.com/kivikakk/comrak/pull/490 |
| 790 |
|
| 791 |
## New Contributors |
| 792 |
|
| 793 |
* @nicoburns made their first contribution in https://github.com/kivikakk/comrak/pull/468 |
| 794 |
* @edwar4rd made their first contribution in https://github.com/kivikakk/comrak/pull/465 |
| 795 |
* @Veetaha made their first contribution in https://github.com/kivikakk/comrak/pull/466 |
| 796 |
|
| 797 |
Diff: https://github.com/kivikakk/comrak/compare/v0.29.0...v0.30.0 |
| 798 |
|
| 799 |
|
| 800 |
# [v0.29.0] - 2024-10-10 |
| 801 |
|
| 802 |
* Add support for backslash escape in wikilinks by @digitalmoksha in https://github.com/kivikakk/comrak/pull/471 |
| 803 |
|
| 804 |
Diff: https://github.com/kivikakk/comrak/compare/v0.28.0...v0.29.0 |
| 805 |
|
| 806 |
|
| 807 |
# [v0.28.0] - 2024-09-05 |
| 808 |
|
| 809 |
* Add a render option to render the image as <figure> by @JmPotato in https://github.com/kivikakk/comrak/pull/458 |
| 810 |
* Fix edge cases for relaxed-autolink option by @digitalmoksha in https://github.com/kivikakk/comrak/pull/461 |
| 811 |
|
| 812 |
Diff: https://github.com/kivikakk/comrak/compare/v0.27.0...v0.28.0 |
| 813 |
|
| 814 |
|
| 815 |
# [v0.27.0] - 2024-08-19 |
| 816 |
|
| 817 |
* Track line offsets for better accuracy of inline sourcepos by @digitalmoksha in https://github.com/kivikakk/comrak/pull/453 |
| 818 |
* Add experimental-inline-sourcepos to cli options by @digitalmoksha in https://github.com/kivikakk/comrak/pull/455 |
| 819 |
|
| 820 |
Diff: https://github.com/kivikakk/comrak/compare/v0.26.0...v0.27.0 |
| 821 |
|
| 822 |
|
| 823 |
# [v0.26.0] - 2024-07-12 |
| 824 |
|
| 825 |
* Restore inline sourcepos as experimental. by @kivikakk in https://github.com/kivikakk/comrak/pull/444 |
| 826 |
* This is needed by some downstream users, so we re-introduce it, with |
| 827 |
a clearly labelled option. |
| 828 |
|
| 829 |
Diff: https://github.com/kivikakk/comrak/compare/v0.25.0...v0.26.0 |
| 830 |
|
| 831 |
|
| 832 |
# [v0.25.0] - 2024-07-12 |
| 833 |
|
| 834 |
* Discord-flavored Markdown by @Meow and @liamwhite in https://github.com/kivikakk/comrak/pull/421 |
| 835 |
* Three new extensions and two render options are added: |
| 836 |
* `extension.underline` adds support for `__underlined__` text. |
| 837 |
* `extension.spoiler` adds support for `||spoiler||` text. |
| 838 |
* `extension.greentext` adds support for image board-style `>greentext`, |
| 839 |
which isn't transformed into a blockquote. |
| 840 |
* `render.ignore_setext` disables parsing setext-style headings. |
| 841 |
* `render.ignore_empty_links` causes links with no text (like `[](xyz)`) to |
| 842 |
remain in the text as-is. |
| 843 |
* nodes: add From impls for AstNode. by @kivikakk in https://github.com/kivikakk/comrak/pull/424 |
| 844 |
* Back by popular demand: `AstNode::from(NodeValue)`. |
| 845 |
* Also added is `AstNode::from(Ast)`, if you have sourcepos. |
| 846 |
* AST validation by @yannham in https://github.com/kivikakk/comrak/pull/425 |
| 847 |
* The AST is validated when formatting a document as CommonMark in debug builds. |
| 848 |
* Address autolink edge cases. by @kivikakk in https://github.com/kivikakk/comrak/pull/426 |
| 849 |
* Autolinks had many edge cases where output differed from upstream |
| 850 |
`cmark-gfm`. These have been fixed by following upstream's parser design |
| 851 |
closely. |
| 852 |
* shortcodes: capture all known aliases. by @kivikakk in https://github.com/kivikakk/comrak/pull/427 |
| 853 |
* We didn't parse shortcodes containing numbers or `+`. We do now. |
| 854 |
* Support both upstream CommonMark and GFM's differences in the base spec. by @kivikakk in https://github.com/kivikakk/comrak/pull/428 |
| 855 |
* GFM modifies even base CommonMark output somewhat. We now support and |
| 856 |
validate against both. |
| 857 |
* cm: count ol items from start of each list. by @kivikakk in https://github.com/kivikakk/comrak/pull/429 |
| 858 |
* Ordered list item numbers are normalised on formatting back to CommonMark. |
| 859 |
* arena_tree: panic if iterator invalidation causes trouble. by @kivikakk in https://github.com/kivikakk/comrak/pull/437 |
| 860 |
* `arena_tree` would silently stop iteration when trying to proceed from a |
| 861 |
child that had lost its parent. It now panics instead, as the old behaviour |
| 862 |
is incorrect and impossible to notice. |
| 863 |
* broken reflink callback updates & big cleanup. by @kivikakk in https://github.com/kivikakk/comrak/pull/438 |
| 864 |
* The broken reference link callback has been moved into `ParseOptions` (which |
| 865 |
now takes a lifetime, meaning `Options` does too). |
| 866 |
* The callback now takes a struct containing both the normalised reference, |
| 867 |
and the original text, and the return value has changed from a 2-tuple to a |
| 868 |
struct for clarity. |
| 869 |
* `parse_document_with_broken_link_callback` has been marked deprecated. |
| 870 |
* Inline sourcepos fixes. by @kivikakk in https://github.com/kivikakk/comrak/pull/439 |
| 871 |
* Inline sourcepos was provided on a best-effort basis, but there are multiple |
| 872 |
correctness issues which can't be fixed without significant work. |
| 873 |
* Inline sourcepos is no longer reported in HTML output. It remains in the AST |
| 874 |
and in XML output, but it is not reliable. See the PR for details. |
| 875 |
* Link sourcepos is slightly better than it was when it spans multiple lines. |
| 876 |
|
| 877 |
## New Contributors |
| 878 |
|
| 879 |
* @liamwhite made their first contribution in https://github.com/kivikakk/comrak/pull/421 |
| 880 |
* @yannham made their first contribution in https://github.com/kivikakk/comrak/pull/425 |
| 881 |
|
| 882 |
Diff: https://github.com/kivikakk/comrak/compare/v0.24.1...v0.25.0 |
| 883 |
|
| 884 |
|
| 885 |
# [v0.24.1] - 2024-05-19 |
| 886 |
|
| 887 |
* Add GH_TOKEN to release workflow by @digitalmoksha in https://github.com/kivikakk/comrak/pull/418 |
| 888 |
|
| 889 |
Diff: https://github.com/kivikakk/comrak/compare/v0.24.0...v0.24.1 |
| 890 |
|
| 891 |
|
| 892 |
# [v0.24.0] - 2024-05-19 |
| 893 |
|
| 894 |
* Miscellany. by @kivikakk in https://github.com/kivikakk/comrak/pull/387 |
| 895 |
* Add automation to release new crates by @gjtorikian in https://github.com/kivikakk/comrak/pull/374 |
| 896 |
* build(deps): bump emojis from 0.5.2 to 0.6.2 by @dependabot in https://github.com/kivikakk/comrak/pull/393 |
| 897 |
* build(deps): bump arbitrary from 1.3.0 to 1.3.2 by @dependabot in https://github.com/kivikakk/comrak/pull/394 |
| 898 |
* build(deps): bump actions/checkout from 3 to 4 by @dependabot in https://github.com/kivikakk/comrak/pull/389 |
| 899 |
* build(deps): bump once_cell from 1.17.0 to 1.19.0 by @dependabot in https://github.com/kivikakk/comrak/pull/390 |
| 900 |
* build(deps): bump xdg from 2.4.1 to 2.5.2 by @dependabot in https://github.com/kivikakk/comrak/pull/391 |
| 901 |
* build(deps): bump derive_builder from 0.12.0 to 0.20.0 by @dependabot in https://github.com/kivikakk/comrak/pull/392 |
| 902 |
* build(deps): bump memchr from 2.5.0 to 2.7.2 by @dependabot in https://github.com/kivikakk/comrak/pull/396 |
| 903 |
* build(deps): bump ntest from 0.9.0 to 0.9.2 by @dependabot in https://github.com/kivikakk/comrak/pull/397 |
| 904 |
* build(deps): bump typed-arena from 2.0.1 to 2.0.2 by @dependabot in https://github.com/kivikakk/comrak/pull/398 |
| 905 |
* Update automerge.yml by @gjtorikian in https://github.com/kivikakk/comrak/pull/401 |
| 906 |
* build(deps): bump clap from 4.0.32 to 4.5.4 by @dependabot in https://github.com/kivikakk/comrak/pull/400 |
| 907 |
* build(deps): bump regex from 1.7.0 to 1.10.4 by @dependabot in https://github.com/kivikakk/comrak/pull/402 |
| 908 |
* Fix release workflows by @gjtorikian in https://github.com/kivikakk/comrak/pull/395 |
| 909 |
* workflows: check MSRV in CI. by @kivikakk in https://github.com/kivikakk/comrak/pull/406 |
| 910 |
* Add support for wikilinks format by @digitalmoksha in https://github.com/kivikakk/comrak/pull/407 |
| 911 |
* Autolink should ignore wikilinks by @digitalmoksha in https://github.com/kivikakk/comrak/pull/413 |
| 912 |
* Bump version to 0.24.0 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/415 |
| 913 |
|
| 914 |
Diff: https://github.com/kivikakk/comrak/compare/0.23.0...v0.24.0 |
| 915 |
|
| 916 |
|
| 917 |
# [0.23.0] |
| 918 |
|
| 919 |
* add traverse() demo example by @kaesluder in https://github.com/kivikakk/comrak/pull/370 |
| 920 |
* Avoid backslashes before a new block. by @jneem in https://github.com/kivikakk/comrak/pull/373 |
| 921 |
* Expand traverse and descendants documentation: Issue #369 by @kaesluder in https://github.com/kivikakk/comrak/pull/375 |
| 922 |
* Feat/inplace: add new parameter `--inplace` (`-i`) for in-place formatting by @bioinformatist in https://github.com/kivikakk/comrak/pull/377 |
| 923 |
* Change `relaxed-autolinks` to allow any url scheme by @digitalmoksha in https://github.com/kivikakk/comrak/pull/380 |
| 924 |
* Fix sourcepos for setext headers by @digitalmoksha in https://github.com/kivikakk/comrak/pull/381 |
| 925 |
* Add iterative search/replace example to examples and README.md by @kaesluder in https://github.com/kivikakk/comrak/pull/383 |
| 926 |
* un-Nix in CI. by @kivikakk in https://github.com/kivikakk/comrak/pull/384 |
| 927 |
* Return brackets in autolinks behavior back to cmark-gfm by @digitalmoksha in https://github.com/kivikakk/comrak/pull/386 |
| 928 |
|
| 929 |
|
| 930 |
# [0.22.0] |
| 931 |
|
| 932 |
* Fix broken docs link in README by @ohakutsu in https://github.com/kivikakk/comrak/pull/364 |
| 933 |
* Make non public nodes public by @mfontanini in https://github.com/kivikakk/comrak/pull/363 |
| 934 |
* cargo update -p rustix --precise 0.36.17 by @kivikakk in https://github.com/kivikakk/comrak/pull/368 |
| 935 |
* Add render option to wrap escaped chars in span by @digitalmoksha in https://github.com/kivikakk/comrak/pull/367 |
| 936 |
* Add math support by @digitalmoksha in https://github.com/kivikakk/comrak/pull/366 |
| 937 |
|
| 938 |
|
| 939 |
# [0.21.0] |
| 940 |
|
| 941 |
* Add a multiline blockquote extension by @digitalmoksha in https://github.com/kivikakk/comrak/pull/359 |
| 942 |
|
| 943 |
|
| 944 |
# [0.20.0] |
| 945 |
|
| 946 |
* build(deps): bump rustix from 0.36.11 to 0.36.16 in /fuzz by @dependabot in https://github.com/kivikakk/comrak/pull/346 |
| 947 |
* Use Nix for CI. by @charlottia in https://github.com/kivikakk/comrak/pull/338 |
| 948 |
* Allow for Syntect to simply generate CSS classes by @gjtorikian in https://github.com/kivikakk/comrak/pull/347 |
| 949 |
|
| 950 |
|
| 951 |
# [0.19.0] |
| 952 |
|
| 953 |
* Simplify anchorize() by @kornelski in https://github.com/kivikakk/comrak/pull/297 |
| 954 |
* Use footnote name for reference id by @digitalmoksha in https://github.com/kivikakk/comrak/pull/300 |
| 955 |
* Escape footnote name by @digitalmoksha in https://github.com/kivikakk/comrak/pull/308 |
| 956 |
* Add in-doc labels for public facing features by @CosmicHorrorDev in https://github.com/kivikakk/comrak/pull/304 |
| 957 |
* build(deps): bump xml-rs from 0.8.4 to 0.8.14 by @dependabot in https://github.com/kivikakk/comrak/pull/312 |
| 958 |
* Handle footnote names that have been parsed into multiple nodes by @digitalmoksha in https://github.com/kivikakk/comrak/pull/311 |
| 959 |
* Sync with cmark-gfm-0.29.0.gfm.3 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/313 |
| 960 |
* Sync with cmark-gfm-0.29.0.gfm.4 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/314 |
| 961 |
* Sync with cmark-gfm-0.29.0.gfm.5 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/315 |
| 962 |
* Fix backslash in a link issue by @vpetrigo in https://github.com/kivikakk/comrak/pull/317 |
| 963 |
* Sync with cmark-gfm-0.29.0.gfm.7 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/318 |
| 964 |
* Rename `ComrakFoo` types to just `Foo` for easier usage by @tgross35 in https://github.com/kivikakk/comrak/pull/320 |
| 965 |
* Make `ComrakExtensionOptions` non-exhaustive by @CosmicHorrorDev in https://github.com/kivikakk/comrak/pull/305 |
| 966 |
* Add builder derive and non_exhaustive for option structs by @YJDoc2 in https://github.com/kivikakk/comrak/pull/292 |
| 967 |
* add PartialEq and Eq derive for Ast and its components by @YJDoc2 in https://github.com/kivikakk/comrak/pull/322 |
| 968 |
* Sync with cmark-gfm-0.29.0.gfm.11 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/319 |
| 969 |
* Fix autolink detection inside wiki style link brackets by @digitalmoksha in https://github.com/kivikakk/comrak/pull/325 |
| 970 |
* Add CI for running benchmarks by @YJDoc2 in https://github.com/kivikakk/comrak/pull/326 |
| 971 |
* Make adapters Send + Sync by @lucperkins in https://github.com/kivikakk/comrak/pull/337 |
| 972 |
* docs: fix-up broken docs.rs link by @silverjam in https://github.com/kivikakk/comrak/pull/341 |
| 973 |
* Use github/cmark-gfm submodule by @digitalmoksha in https://github.com/kivikakk/comrak/pull/344 |
| 974 |
* Sync with cmark-gfm-0.29.0.gfm.12 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/343 |
| 975 |
* Sync with cmark-gfm-0.29.0.gfm.13 by @digitalmoksha in https://github.com/kivikakk/comrak/pull/345 |
| 976 |
|
| 977 |
|
| 978 |
# [0.18.0] |
| 979 |
|
| 980 |
* Improve performance of bundled plugins, and streaming I/O by @kivikakk in https://github.com/kivikakk/comrak/pull/288 |
| 981 |
* Implement Default for enums without using #[default] attribute by @silverpill in https://github.com/kivikakk/comrak/pull/293 |
| 982 |
* XML and sourcepos support by @kivikakk in https://github.com/kivikakk/comrak/pull/232 |
| 983 |
* Add a quadratic fuzzer by @philipturnbull in https://github.com/kivikakk/comrak/pull/295 |
| 984 |
|
| 985 |
|
| 986 |
# [0.17.1] |
| 987 |
|
| 988 |
* Fix some panics found by trivial fuzzing. |
| 989 |
|
| 990 |
Missed from the 0.17.0 changelog: |
| 991 |
|
| 992 |
* Add footnote attributes that mirror cmark-gfm by @digitalmoksha in https://github.com/kivikakk/comrak/pull/273 |
| 993 |
* Add support for full_info_string render option by @digitalmoksha in https://github.com/kivikakk/comrak/pull/276 |
| 994 |
* chore: improve debug performance by @conradludgate in https://github.com/kivikakk/comrak/pull/283 |
| 995 |
|
| 996 |
|
| 997 |
# [0.17.0] |
| 998 |
|
| 999 |
This contains some breaking changes from an API point of view, but output is |
| 1000 |
largely unchanged. Spec compliance is improved, and benchmark runtime is over |
| 1001 |
20% faster. |
| 1002 |
|
| 1003 |
* SECURITY: GHSA-8hqf-xjwp-p67v / Quadratic runtime when parsing Markdown (GHSL-2023-047) |
| 1004 |
* <https://github.com/kivikakk/comrak/security/advisories/GHSA-8hqf-xjwp-p67v> |
| 1005 |
* A variety of quadratic runtime issues that could lead to DoS were reported |
| 1006 |
and addressed. |
| 1007 |
* We replaced pest with an re2c-based scanner. |
| 1008 |
* SECURITY: GHSA-xxmq-4vph-956w / Excessive output when parsing Markdown (GHSL-2023-048) |
| 1009 |
* <https://github.com/kivikakk/comrak/security/advisories/GHSA-xxmq-4vph-956w> |
| 1010 |
* Reference output is limited to 100Kb. |
| 1011 |
* SECURITY: GHSA-5r3x-p7xx-x6q5 / Attacker controlled data in AST nodes is not validated (GHSL-2023-049) |
| 1012 |
* <https://github.com/kivikakk/comrak/security/advisories/GHSA-5r3x-p7xx-x6q5> |
| 1013 |
* AST nodes no longer store raw `Vec<u8>`s, and instead store `String`s. |
| 1014 |
* Various API points were cleaned up. |
| 1015 |
* Comrak now targets Rust 2018. |
| 1016 |
|
| 1017 |
Many thanks to @philipturnbull and @darakian of the GitHub Security Lab for |
| 1018 |
bringing these issues to my attention and detailing the reproduction steps for |
| 1019 |
each case. |
| 1020 |
|
| 1021 |
|
| 1022 |
# [0.16.0] |
| 1023 |
|
| 1024 |
* Track which symbol was used to mark task item as checked by @felipesere in https://github.com/kivikakk/comrak/pull/252 |
| 1025 |
* improve tagfilter performance by @fiji-flo in https://github.com/kivikakk/comrak/pull/256 |
| 1026 |
* [ShortCode] Add support for gemojis via shortcodes extension by @eklipse2k8 in https://github.com/kivikakk/comrak/pull/260 |
| 1027 |
* "mod three rule" fix by @kivikakk in https://github.com/kivikakk/comrak/pull/262 |
| 1028 |
* Add `shortcodes` to the README by @gjtorikian in https://github.com/kivikakk/comrak/pull/263 |
| 1029 |
* Cargo.toml: remove timebomb by @kivikakk in https://github.com/kivikakk/comrak/pull/264 |
| 1030 |
* Add custom heading adapter by @lucperkins in https://github.com/kivikakk/comrak/pull/266 |
| 1031 |
* Keep track of "^" symbol when within footnotes by @gjtorikian in https://github.com/kivikakk/comrak/pull/274 |
| 1032 |
|
| 1033 |
|
| 1034 |
# [0.15.0] |
| 1035 |
|
| 1036 |
* table: fix start_line of Table itself by @kivikakk in https://github.com/kivikakk/comrak/pull/231 |
| 1037 |
* Rename header file to match c libname by @gjtorikian in https://github.com/kivikakk/comrak/pull/233 |
| 1038 |
* Change the name of the ifdef by @gjtorikian in https://github.com/kivikakk/comrak/pull/234 |
| 1039 |
* Add `comrak_set_parse_option_smart` by @gjtorikian in https://github.com/kivikakk/comrak/pull/235 |
| 1040 |
* Allow `c_char` options to be NULL by @gjtorikian in https://github.com/kivikakk/comrak/pull/237 |
| 1041 |
* Replace `lazy_static` dependency with `once_cell` by @Turbo87 in https://github.com/kivikakk/comrak/pull/238 |
| 1042 |
* Make `comrak --help` readable on my terminal by @mgeisler in https://github.com/kivikakk/comrak/pull/242 |
| 1043 |
* c-api: fix CI build by @kivikakk in https://github.com/kivikakk/comrak/pull/240 |
| 1044 |
* Bump versions of some dependencies by @helmet91 in https://github.com/kivikakk/comrak/pull/243 |
| 1045 |
* Adding functionality to build SyntectAdapters with custom themes, syntax sets, etc. by @ArvinSKushwaha in https://github.com/kivikakk/comrak/pull/239 |
| 1046 |
* Make shell-words and xdg dependencies optional by @silverpill in https://github.com/kivikakk/comrak/pull/245 |
| 1047 |
* Bump clap version to 4.0 and switch to the Derive API by @tranzystorek-io in https://github.com/kivikakk/comrak/pull/248 |
| 1048 |
* c-api: remove by @kivikakk in https://github.com/kivikakk/comrak/pull/249 |
| 1049 |
|
| 1050 |
|
| 1051 |
# [0.14.0] |
| 1052 |
|
| 1053 |
* Add C FFI, allowing Comrak to be used from other languages. (#171, Garen |
| 1054 |
Torikian) |
| 1055 |
* Fix line wrapping in CommonMark output. (#228, Edward Loveall) |
| 1056 |
* Add option to specify character used for unordered list bullets in |
| 1057 |
CommonMark output. (#229, Edward Loveall) |
| 1058 |
|
| 1059 |
|
| 1060 |
# [0.13.2] |
| 1061 |
|
| 1062 |
* Fix Windows build. |
| 1063 |
|
| 1064 |
|
| 1065 |
# [0.13.1] |
| 1066 |
|
| 1067 |
* Support compiling for WASM. (#222, Ben Wishoshavich) |
| 1068 |
* Replace deprecated twoway dependency. (#224) |
| 1069 |
|
| 1070 |
|
| 1071 |
# [0.13.0] |
| 1072 |
|
| 1073 |
* SECURITY: Bump regex to 1.5.5. (#221, Dependabot) |
| 1074 |
* Drop unneeded YAML dependency from Syntect. (#199, Chris Wong) |
| 1075 |
* Match newline handling in code inlines to upstream, and improve test failure |
| 1076 |
reporting. (#210, Michael Anderson) |
| 1077 |
* Make all node value fields public. (#216, Evan Schwartz) |
| 1078 |
* Line break handling adjustments. (#214, Michael Anderson) |
| 1079 |
* Disable control characters in link definitions. (#219, Michael Anderson) |
| 1080 |
|
| 1081 |
|
| 1082 |
# [0.12.1] |
| 1083 |
|
| 1084 |
* Only load syntax and theme sets once, on Syntect plugin instantiation. (#197) |
| 1085 |
* Match syntax highlighting language names more loosely. (#198) |
| 1086 |
|
| 1087 |
|
| 1088 |
# [0.12.0] |
| 1089 |
|
| 1090 |
* Add pluggable syntax highlighting, and default implementation with syntect. |
| 1091 |
(Daniel Simon, #194) |
| 1092 |
|
| 1093 |
|
| 1094 |
# [0.11.0] |
| 1095 |
|
| 1096 |
* Allow short URLs even with non-empty path. (#191, Bernard Teo) |
| 1097 |
* Expose NodeCode struct in AST. (#192, Vojtech Kral) |
| 1098 |
|
| 1099 |
|
| 1100 |
# [0.10.1] |
| 1101 |
|
| 1102 |
* SECURITY: it was possible to smuggle unsafe URLs --- like `javascript:` ones |
| 1103 |
--- even without using the "unsafe" mode of operation. Thanks to Sam Sanoop |
| 1104 |
(snoopysecurity) for reporting. |
| 1105 |
* Recognise tables without a preceding newline. (#183) |
| 1106 |
|
| 1107 |
|
| 1108 |
# [0.10.0] |
| 1109 |
|
| 1110 |
* 0.9.1 was a semver-breaking change. |
| 1111 |
* Add -o/--output CLI option. (#177) |
| 1112 |
|
| 1113 |
|
| 1114 |
# [0.9.1] |
| 1115 |
|
| 1116 |
* SECURITY: we were matching unsafe URL prefixes, such as `data:` or |
| 1117 |
`javascript:`, in a case-sensitive manner. This meant prefixes like `Data:` |
| 1118 |
were untouched. Please upgrade as soon as possible. (Kouhei Morita) |
| 1119 |
* Add support for ignoring front matter. (#170, Eitan Mosenkis.) |
| 1120 |
|
| 1121 |
|
| 1122 |
# [0.9.0] |
| 1123 |
|
| 1124 |
* 0.8.2 was a semver-breaking change, so we're now bumping to 0.9.0. Some |
| 1125 |
tests have been added to catch this in future. |
| 1126 |
* Allow image/ prefix on data URIs. (#169, Daniel Sorichetti) |
| 1127 |
|
| 1128 |
|
| 1129 |
# [0.8.2] |
| 1130 |
|
| 1131 |
* Fix some lint issues. (#152, Caleb Maclennan) |
| 1132 |
* Build benchmarks separately to tests. (#154) |
| 1133 |
* Add support for a config file for CLI use. (#157, with thanks to AJ ONeal.) |
| 1134 |
|
| 1135 |
|
| 1136 |
# [0.8.1] |
| 1137 |
|
| 1138 |
* Add escape option to escape raw HTML instead of clobbering it. (#150, Ryan |
| 1139 |
Westlund) |
| 1140 |
|
| 1141 |
|
| 1142 |
# [0.8.0] |
| 1143 |
|
| 1144 |
* 0.7.1 was a semver-breaking change. This is now 0.8.0. |
| 1145 |
|
| 1146 |
|
| 1147 |
# [0.7.1] |
| 1148 |
|
| 1149 |
* Reduce list item indentation in line with spec. (#135, Casey Rodarmor) |
| 1150 |
* Split uber-struct ComrakOptions into substructures. |
| 1151 |
* Refactor HTML formatter escaping. (#140, Donough Liu) |
| 1152 |
* Don't render <p> inside <dt> tags. (#145) |
| 1153 |
|
| 1154 |
|
| 1155 |
# [0.7.0] |
| 1156 |
|
| 1157 |
* Supporting stable and newer again, since dependencies keep breaking for |
| 1158 |
1.27.0. (#134) |
| 1159 |
|
| 1160 |
|
| 1161 |
# [0.6.2] |
| 1162 |
|
| 1163 |
* Exclude unneeded files from crate. (#120, Igor Gnatenko) |
| 1164 |
* Bump the twoway dependency. (#121, Igor Gnatenko) |
| 1165 |
|
| 1166 |
|
| 1167 |
# [0.6.1] |
| 1168 |
|
| 1169 |
* Add --gfm flag to CLI to enable all GitHub Flavored Markdown extensions and |
| 1170 |
options. (#118, James R Miller) |
| 1171 |
|
| 1172 |
|
| 1173 |
# [0.6.0] |
| 1174 |
|
| 1175 |
* Add TaskItem variant to NodeValue. (#115, Élisabeth Henry) |
| 1176 |
|
| 1177 |
|
| 1178 |
# [0.5.1] |
| 1179 |
|
| 1180 |
* Support building on Rust versions back to 1.27.0. (#114) |
| 1181 |
|
| 1182 |
|
| 1183 |
# [0.5.0] |
| 1184 |
|
| 1185 |
* Update API so that footnote reference and definition identifiers match. |
| 1186 |
(#110, Élisabeth Henry) |
| 1187 |
* Update to CommonMark spec 0.29. (#112) |
| 1188 |
|
| 1189 |
|
| 1190 |
# [0.4.4] |
| 1191 |
|
| 1192 |
* Add From<NodeValue> impl to AstNode. (#105, Sunjay Varma) |
| 1193 |
|
| 1194 |
|
| 1195 |
# [0.4.3] |
| 1196 |
|
| 1197 |
* Add a Default derive and Ast::new to make ASTs programmatically |
| 1198 |
constructible. (#101, Sunjay Varma and #102) |
| 1199 |
|
| 1200 |
|
| 1201 |
# [0.4.2] |
| 1202 |
|
| 1203 |
* Add a callback to fill in broken reference links, per pulldown_cmark's |
| 1204 |
Parser::new_with_broken_link_callback. (#100, Sunjay Varma) |
| 1205 |
* Update to latest spec. (#99) |
| 1206 |
|
| 1207 |
|
| 1208 |
# [0.4.1] |
| 1209 |
|
| 1210 |
* Fix a bug in anchor generation; it should now be on par with GitHub's. (#97, Clifford T. Matthews) |
| 1211 |
* Expose anchor generation for use in library consumers. (#94, Clifford T. Matthews) |
| 1212 |
|
| 1213 |
|
| 1214 |
# [0.4.0] |
| 1215 |
|
| 1216 |
* Invert default-false `safe` flag to default-false `unsafe_` flag. If you |
| 1217 |
were not enabling safe mode before, you'll need to enable unsafe mode now. |
| 1218 |
|
| 1219 |
|
| 1220 |
# [0.3.1] |
| 1221 |
|
| 1222 |
* Keep up-to-date with the spec. |
| 1223 |
|
| 1224 |
|
| 1225 |
# [0.3.0] |
| 1226 |
|
| 1227 |
* Significant test coverage and code clean up. (#82, #83, Brian Anderson) |
| 1228 |
* Description list support. (#86, Ayose Cazorla) |
| 1229 |
* Example use of comrak to convert CommonMark documents into S-expressions. (#86, Ayose Cazorla) |
| 1230 |
* Footnotes are now enabled via an extension option, not a flag of its own. (#87) |
| 1231 |
* Extend `cmark-gfm` compatibility to include all extension and regression tests. (#87) |
| 1232 |
|
| 1233 |
|
| 1234 |
# [0.2.14] |
| 1235 |
|
| 1236 |
* Speed enhancements. (#76, Brian Anderson) |
| 1237 |
* Target latest spec; bring comrak closer into line with cmark. (#81, Brian Anderson and Ashe Connor) |
| 1238 |
|
| 1239 |
|
| 1240 |
# [0.2.13] |
| 1241 |
|
| 1242 |
* Speed enhancements. (#75, Shaquille Johnson) |
| 1243 |
|
| 1244 |
|
| 1245 |
# [0.2.12] |
| 1246 |
|
| 1247 |
* Add safety options per the reference C implementation. (#67) |
| 1248 |
|
| 1249 |
|
| 1250 |
# [0.2.11] |
| 1251 |
|
| 1252 |
* Expose Arena type so users don't need to bring it in themselves (#66, Vincent |
| 1253 |
Prouillet). |
| 1254 |
|
| 1255 |
|
| 1256 |
# [0.2.10] |
| 1257 |
|
| 1258 |
* Bring up to date with latest spec. |
| 1259 |
* Fix parsing of tables nested in other block elements (#61, Brian Anderson). |
| 1260 |
* Protect against stack smashing in inline processors and CommonMark and HTML |
| 1261 |
formatters (#63, Brian Anderson). |
| 1262 |
|
| 1263 |
|
| 1264 |
# [0.2.9] |
| 1265 |
|
| 1266 |
* Fix a corner case in the ATX header parser (#53, Brian Anderson). |
| 1267 |
* Fix grammar for scanning table marker rows (#55, Brian Anderson). |
| 1268 |
* Add smart punctuation (#57). |
| 1269 |
|
| 1270 |
|
| 1271 |
# [0.2.8] |
| 1272 |
|
| 1273 |
* Add `default-info-string` argument/option to specify a default language in fenced |
| 1274 |
code blocks. (Thanks to @steveklabnik for the suggestion.) |
| 1275 |
|
| 1276 |
|
| 1277 |
# [0.2.7] |
| 1278 |
|
| 1279 |
* Use [`pest`](https://github.com/pest-parser/pest) instead of regexes for lexing. |
| 1280 |
|
| 1281 |
|
| 1282 |
# [0.2.6] |
| 1283 |
|
| 1284 |
* Fixed a bug where back-to-back emphases would not be processed correctly. |
| 1285 |
(#45; thanks to @SSJohns for the report.) |
| 1286 |
|
| 1287 |
|
| 1288 |
# [0.2.5] |
| 1289 |
|
| 1290 |
* Fixed a bug where an exclamation mark "!" followed by a footnote would be |
| 1291 |
eaten by the parser. |
| 1292 |
|
| 1293 |
|
| 1294 |
# [0.2.4] |
| 1295 |
|
| 1296 |
* Added footnotes support. |
| 1297 |
|
| 1298 |
|
| 1299 |
# [0.2.3] |
| 1300 |
|
| 1301 |
* Added header IDs extension. |
| 1302 |
|
| 1303 |
|
| 1304 |
# [0.2.2] |
| 1305 |
|
| 1306 |
* Fix for pathological reference link parsing. |
| 1307 |
|
| 1308 |
|
| 1309 |
# [0.2.1] |
| 1310 |
|
| 1311 |
* Speed optimisations. |
| 1312 |
|
| 1313 |
|
| 1314 |
# [0.2.0] |
| 1315 |
|
| 1316 |
* The formatters no longer produce Strings themselves; you must specify an |
| 1317 |
output stream. |
| 1318 |
* Speed up whitespace normalisation. |
| 1319 |
|
| 1320 |
|
| 1321 |
# [0.1.9] |
| 1322 |
|
| 1323 |
* Multibyte character fix for autolink (#35, Shaquille Johnson). |
| 1324 |
* Resolve panics with tables in awkward situations (#36). |
| 1325 |
|
| 1326 |
|
| 1327 |
# [0.1.8] |
| 1328 |
|
| 1329 |
* Fix possible DoS in link parsing (#33, Demi Obenour). |