comrak breaking changes
Updated December 4, 2026
On this page
Latest version 1.3.0, released December 3, 2026. Source repository
Packages on crates.io run on Rust. Rust end of life dates.
- From 0.56.0 to 1.0.0: 44 breaking changes in 3 versions.
- From 0.30.0 to 1.0.0: 285 breaking changes in 21 versions.
comrak 1.0.0 breaking changes
- Removed
Implicit features from optional dependencies are gone. Enable the cli or shortcodes features instead. github.com - Removed
comrak::options::WikiLinksMode
WikiLinksMode is no longer exported from the public API, since its only constructor was not public. crates.io - Signature changed
AlertStyleType
AlertStyleType can no longer be matched exhaustively. Add a wildcard arm. github.com - Signature changed
AlertType
AlertType can no longer be matched exhaustively. Add a wildcard arm. github.com - Signature changed
Attributes
Attributes can no longer be built with a struct literal or matched exhaustively. github.com - Signature changed
BrokenLinkReference
BrokenLinkReference can no longer be built with a struct literal. github.com - Signature changed
ChildRendering
ChildRendering can no longer be matched exhaustively. Add a wildcard arm. github.com - Signature changed
comrak::adapters::CodefenceRendererAdapter::write
write now takes a CodefenceMeta argument. Update adapter implementations to accept it. crates.io - Signature changed
comrak::adapters::HeadingAdapter::enter
enter now gets its sourcepos from HeadingMeta. Update implementations to use it. crates.io - Signature changed
comrak::adapters::SyntaxHighlighterAdapter::write_highlighted
Was fn write_highlighted(&self, output: &mut dyn fmt::Write, lang: Option<&str>, code: &str) -> fmt::Result; now fn write_highlighted(&self, output: &mut dyn fmt::Write, highlight: &SyntaxHighlightMeta<'_>) -> fmt::Result. crates.io - Signature changed
comrak::nodes::NodeValue::Emph
Emph gets an intentionally blank payload struct, so patterns and constructors must include it. crates.io - Signature changed
comrak::nodes::NodeValue::Strikethrough
Strikethrough gets an intentionally blank payload struct, so patterns and constructors must include it. crates.io - Signature changed
comrak::nodes::NodeValue::Strong
Strong gets an intentionally blank payload struct, so patterns and constructors must include it. crates.io - Signature changed
comrak::nodes::NodeValue::TableRow
TableRow now wraps NodeTableRow instead of a bool. Update code that matched or built TableRow(bool). crates.io - Signature changed
comrak::nodes::NodeValue::ThematicBreak
ThematicBreak gets an intentionally blank payload struct, so patterns and constructors must include it. crates.io - Signature changed
Extension
Extension can no longer be built with a struct literal. Start from Default and modify it. github.com - Signature changed
GridTableColumn
GridTableColumn is no longer Copy, so copies must be explicit clones. github.com - Signature changed
HeadingAdapter.exit
exit now gets its sourcepos from HeadingMeta. Update implementations to use it. github.com - Signature changed
HeexNode
HeexNode can no longer be matched exhaustively. Add a wildcard arm. github.com - Signature changed
NodeDescriptionItem
NodeDescriptionItem is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeGridTableCell
NodeGridTableCell is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeHeading
NodeHeading is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeList
NodeList is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeMultilineBlockQuote
NodeMultilineBlockQuote is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeTaskItem
NodeTaskItem is no longer Copy, so copies must be explicit clones. github.com - Signature changed
NodeValue
NodeValue and its payloads can no longer be built or matched exhaustively. Use the new constructors and add wildcard match arms. github.com - Signature changed
Options
Options can no longer be built with a struct literal. Start from Default or use Options::builder(). github.com - Signature changed
Parse
Parse can no longer be built with a struct literal. Start from Default and modify it. github.com - Signature changed
Plugins
Plugins can no longer be built with a struct literal. Start from Default and modify it. github.com - Signature changed
Render
Render can no longer be built with a struct literal and is no longer Copy. Start from Default and clone where copies were relied on. github.com - Signature changed
RenderPlugins
RenderPlugins can no longer be built with a struct literal. Start from Default and modify it. github.com - Signature changed
ResolvedReference
ResolvedReference can no longer be built with a struct literal. Use ResolvedReference::new. github.com - Signature changed
SyntaxHighlighterAdapter
All SyntaxHighlighterAdapter methods now take a SyntaxHighlightMeta, where lang is no longer optional. Update implementations. github.com - Signature changed
ValidationError
ValidationError can no longer be matched exhaustively. Add a wildcard arm. github.com
comrak 1.0.0-rc.2 breaking changes
- Behavior changed
Emails containing entities no longer autolink, and trailing punctuation is stripped before domain checks. Output for such text will differ. github.com - Behavior changed
Backslashes before pipes are now paired correctly, and only spaces and tabs count as cell padding. Table content with such backslashes may now render differently. github.com - Behavior changed
Entities, smart punctuation and markers not followed by a space, tab or line end no longer create task items under relaxed_tasklist_matching. Adjust inputs that relied on the old matching. github.com - Behavior changed
A strikethrough delimiter mismatch no longer halts inline parsing, so later emphasis now renders. Output for such input changes. github.com - Behavior changed
The XML formatter now emits table header rows as <table_header>, matching cmark-gfm. Update XML consumers that expected the old element. github.com
comrak 1.0.0-rc.1 breaking changes
- Behavior changed
Carriage returns from \r\n and \r in block content are now normalised to \n, reversing the v0.48.0 behaviour. Check code that relied on carriage returns in literals. github.com - Behavior changed
Reference links are now expanded up to at least 100 KB or the document size, whichever is larger, instead of the smaller of the two. github.com - Behavior changed
Source positions for unclosed fenced code blocks, multiline block quotes, block directives and multiline alerts changed. Code relying on the old sourcepos values may need updating. github.com - Signature changed
comrak::adapters::SyntaxHighlighterAdapter::write_code_tag
write_code_tag now takes a BTreeMap<&str, Cow<str>> instead of a HashMap<&'static str, Cow<str>>. Update implementations to match. crates.io - Signature changed
comrak::adapters::SyntaxHighlighterAdapter::write_pre_tag
write_pre_tag now takes a BTreeMap<&str, Cow<str>> instead of a HashMap<&'static str, Cow<str>>. Update implementations to match. crates.io
comrak 0.56.0 breaking changes
- Removed
comrak::options::Extension::tagfilter
The tagfilter extension is removed in this release, so code that enables it must stop using it. crates.io - Configuration changed
Comrak 0.56.0 requires Rust 1.89 or later. Projects on older Rust toolchains must upgrade their toolchain before updating. github.com
comrak 0.54.0 breaking changes
- Removed
All items previously marked as deprecated have been removed, so code using them will no longer compile and must switch to their replacements. github.com - Removed
comrak::BrokenLinkReference
Use comrak::options::BrokenLinkReference instead. crates.io - Removed
comrak::ExtensionOptions
Use comrak::options::Extension instead. crates.io - Removed
comrak::ExtensionOptionsBuilder
Use comrak::options::ExtensionBuilder instead. crates.io - Removed
comrak::html::collect_text
html::collect_text has been moved onto Node, so callers must use the Node method instead of the free function. crates.io - Removed
comrak::html::collect_text_append
comrak::html::collect_text_append was removed in comrak 0.54.0 crates.io - Removed
comrak::ListStyleType
Use comrak::options::ListStyleType instead. crates.io - Removed
comrak::options::Extension::header_ids
Use header_id_prefix instead. crates.io - Removed
comrak::ParseOptions
Use comrak::options::Parse instead. crates.io - Removed
comrak::ParseOptionsBuilder
Use comrak::options::ParseBuilder instead. crates.io
And 9 more in this version. Sign up to see every change
comrak 0.53.0 breaking changes
- Behavior changed
Debug builds now check the AST before formatting HTML or XML, so invalid trees that previously passed may now fail in debug builds. github.com - Behavior changed
--inplace
The command-line --inplace option now takes several file arguments, so scripts that relied on its previous argument handling may behave differently. github.com - Configuration changed
Alternative syntect backends must be enabled as features. WASM users need to build with --no-default-features. github.com
Older versions
16 older versions, each with its first changes. Sign up to see every change
Show 16 older versions
comrak 0.52.0 breaking changes
- Removed
The Typst formatter added in the previous release was removed again. Code that uses it must stop using it or switch to another output format. github.com - Removed
comrak::format_typst
comrak::format_typst was removed in comrak 0.52.0 crates.io
And 4 more in this version.
comrak 0.51.0 breaking changes
- Behavior changed
Text inside table cells is no longer wrapped when rendering CommonMark output. Code that depends on the wrapped layout may need updating. github.com - Default changed
The CLI gained a "css" syntax highlighting option and now uses CSS as its default highlighting mode. Pass a different option if you relied on the previous default. github.com
comrak 0.50.0 breaking changes
- Configuration changed
The crate now requires Rust 1.85 or later to build, because the codebase moved to the Rust 2024 edition. Users on older Rust toolchains must upgrade their compiler. github.com - Signature changed
comrak::nodes::AlertType::css_class
Was fn css_class(&self) -> String; now fn css_class(&self) -> &'static str. crates.io
And 2 more in this version.
comrak 0.49.0 breaking changes
- Signature changed
comrak::adapters::SyntaxHighlighterAdapter::write_code_tag
Was fn write_code_tag<'s>(&self, output: &mut dyn fmt::Write, attributes: HashMap<&'static str, Cow<'s, str>>) -> fmt::Result; now fn write_code_tag(&self, output: &mut dyn fmt::Write, attributes: HashMap<&'static str, Cow<'_, str>>) ->... crates.io - Signature changed
comrak::adapters::SyntaxHighlighterAdapter::write_pre_tag
Was fn write_pre_tag<'s>(&self, output: &mut dyn fmt::Write, attributes: HashMap<&'static str, Cow<'s, str>>) -> fmt::Result; now fn write_pre_tag(&self, output: &mut dyn fmt::Write, attributes: HashMap<&'static str, Cow<'_, str>>) ->... crates.io
And 15 more in this version.
comrak 0.48.0 breaking changes
- Behavior changed
Relaxed tasklist matching now accepts a full Unicode scalar between the brackets and no longer maps single-byte UTF-8 characters to the wrong codepoint. github.com - Behavior changed
The parser no longer turns NUL bytes into U+FFFD, so AST content keeps NUL where the input had it. Custom formatters that emit AST content directly must do the U+FFFD translation themselves, or use comrak::html::escape... github.com
And 9 more in this version.
comrak 0.46.0 breaking changes
- Removed
Comrak now requires Rust 1.70 or later; Rust 1.65 is no longer supported, so older toolchains must be upgraded. github.com - Behavior changed
The U+2069 character now terminates an autolink instead of being included in the link, which can change parsed output for text containing it. github.com
And 1 more in this version.
comrak 0.45.0 breaking changes
- Removed
comrak::BrokenLinkReference::normalized
comrak::BrokenLinkReference::normalized was removed in comrak 0.45.0 crates.io - Removed
comrak::BrokenLinkReference::original
comrak::BrokenLinkReference::original was removed in comrak 0.45.0 crates.io
And 118 more in this version.
comrak 0.44.0 breaking changes
- Behavior changed
Autolinks now follow the GFM autolinks spec more strictly by default. Inputs such as http://localhost, www.com or https:// no longer parse as autolinks unless the relaxed_autolinks option is enabled. github.com
comrak 0.43.0 breaking changes
- Behavior changed
Delimiters followed by punctuation are now treated as left-flanking, so inputs like e^-i^ and n~-i~ parse as superscript or subscript instead of plain text. Check existing documents that relied on the old output. github.com - Signature changed
comrak::adapters::HeadingAdapter::enter
Was fn enter(&self, output: &mut dyn Write, heading: &HeadingMeta, sourcepos: Option<Sourcepos>) -> io::Result<()>; now fn enter(&self, output: &mut dyn fmt::Write, heading: &HeadingMeta, sourcepos: Option<Sourcepos>) -> fmt::Result. crates.io
And 24 more in this version.
comrak 0.42.0 breaking changes
- Signature changed
Anchorizer.anchorizer
Anchorizer::anchorizer now takes a &str argument rather than a String. Callers passing an owned String must pass a reference instead. github.com - Signature changed
comrak::html::collect_text
html::collect_text now returns a String. Code that passed in a buffer must use html::collect_text_append instead. crates.io
comrak 0.40.0 breaking changes
- Behavior changed
The release reverts the earlier 'Fix header-ids accessibility' change, so generated header IDs may differ from the previous behavior. Check any code or tests that depend on header ID output. github.com - Signature changed
comrak::html::escape_href
Was fn escape_href(output: &mut dyn Write, buffer: &[u8]) -> io::Result<()>; now fn escape_href(output: &mut dyn Write, buffer: &[u8], relaxed_ipv6: bool) -> io::Result<()>. crates.io
comrak 0.38.0 breaking changes
- Removed
comrak::RenderOptions::experimental_inline_sourcepos
comrak::RenderOptions::experimental_inline_sourcepos was removed in comrak 0.38.0 crates.io - Signature changed
comrak::html::Context
Was struct Context<'o, 'c>; now struct Context<'o, 'c, T = ()>. crates.io
And 5 more in this version.
comrak 0.35.0 breaking changes
- Behavior changed
Rendered alert blocks use the class markdown-alert instead of alert. Update any CSS or selectors that target the old alert class. github.com
comrak 0.33.0 breaking changes
- Configuration changed
The bon builder APIs are no longer always compiled in. Code that uses the builders must enable the optional builder feature in Cargo.toml. github.com
comrak 0.32.0 breaking changes
- Behavior changed
sourcepos
Reported sourcepos values now include the front matter offset, so code that relies on the old line and column numbers may need adjusting. github.com - Behavior changed
wikilinks_title_before_pipe
When both wikilink title options are enabled, wikilinks_title_after_pipe takes precedence over wikilinks_title_before_pipe. github.com
And 12 more in this version.
comrak 0.30.0 breaking changes
- Signature changed
comrak::BrokenLinkCallback
Was type BrokenLinkCallback<'c> = &'c mut dyn FnMut(BrokenLinkReference) -> Option<ResolvedReference>; now trait BrokenLinkCallback: RefUnwindSafe + Send + Sync. crates.io - Signature changed
comrak::ComrakOptions
Was type ComrakOptions<'c> = Options<'c>; now type ComrakOptions = Options. crates.io
And 6 more in this version.
Check your code
These are the changes. To see which of them reach your code, scan a public repository, or have your coding agent call check_code with your manifest or lockfile over MCP. The API reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

Put your code on continuous maintenance.
Scan a public repository now, or give your agent one line.
See how out of date your code is.
Tell your agent what changed since it was trained.
claude mcp add --transport http since https://api.since.dev/mcpCodex, Cursor and any MCP client use https://api.since.dev/mcp.