Repository navigation
3.0.0 (2026-11-29)
⚠ BREAKING CHANGES
Upgrading from 2.x: Read the Commonmarker 3.0 upgrade guide for the complete defaults table and a copy-paste configuration that restores 2.x output.
- Default rendering is now plain CommonMark. GFM extensions, heading IDs, hard line breaks, 80-column CommonMark wrapping, emoji shortcodes, and syntax highlighting are no longer enabled by default. Enable syntax highlighting with
plugins: { syntax_highlighter: {} }. (#501) Commonmarkeris now a class.Commonmarker.to_html,Commonmarker.parse, andCommonmarker::Node#to_htmlcontinue to work. Replacemodule Commonmarkerwithclass Commonmarker;include Commonmarkerandextend Commonmarkerare no longer supported. (#499)alert_styleandlist_stylerequire Symbols. Use:specificor:semantic, and:dash,:plus, or:star. (#500)- Ruby configuration internals were removed.
Commonmarker::Config.process_options,Commonmarker::Config.process_plugins,Commonmarker::Utils,Commonmarker::Constants, andCommonmarker::Config::OPTIONS[:format]are gone. (#420) - Rendered output may differ in edge cases because Commonmarker now uses comrak 1.2. Applications with HTML snapshots should review comrak's changelog. Building Commonmarker from source now requires Rust 1.89 or newer. (#495)
- Syntax highlighters are cached by theme and path for the life of the process. Restart the process after changing custom theme files. (#499)
Features
- Use comrak's defaults for options and plugins (#501)
- Require Symbols for alert_style and list_style (#500)
- Add Commonmarker.new and cache syntax highlighters (#499)
- Support comrak's attribute blocks (#498)
- Add the comrak 1.x node types to Node (#497)
- move all options management to Rust-side (#420)
- Upgrade to comrak 1.2.0 (#495)
Bug Fixes
- raise rescuable error for malformed option keys instead of panicking (#505)
- raise ArgumentError for unknown Node type instead of panicking (#506)
- enforce max_nesting_depth when rendering a Node (#507)
- raise ArgumentError for invalid list_type= and alert_type= values (#508)
- prevent stack overflow in Node#inspect on deeply nested trees (#503)
Performance Improvements
- Reduce small-file rendering overhead (#502)