commonmarker-merge v1.0.0 released!
1.0.0 - 2026-02-01
- TAG: v1.0.0
- COVERAGE: 86.52% – 154/178 lines in 7 files
- BRANCH COVERAGE: 47.73% – 21/44 branches in 7 files
- 86.44% documented
Added
- tree_haver v5.0.3
- ast-merge v4.0.5
- markdown-merge v1.0.2
- Thin wrapper around
markdown-mergefor Commonmarker backend Commonmarker::Merge::SmartMerger- smart merging with commonmarker defaults- Default freeze token:
"commonmarker-merge" - Default
inner_merge_code_blocks: false
- Default freeze token:
Commonmarker::Merge::FileAnalysis- file analysis with commonmarker backendCommonmarker::Merge::FreezeNode- freeze block support- Commonmarker-specific parse options via
options:parameter - Error classes:
Error,ParseError,TemplateParseError,DestinationParseError - Re-exports shared classes from markdown-merge:
FileAligner,ConflictResolver,MergeResultTableMatchAlgorithm,TableMatchRefiner,CodeBlockMergerNodeTypeNormalizer
- FFI backend isolation for test suite
- Added
bin/rspec-ffiscript to run FFI specs in isolation (before MRI backend loads) - Added
spec/spec_ffi_helper.rbfor FFI-specific test configuration - Updated Rakefile with
ffi_specsandremaining_specstasks - The
:testtask now runs FFI specs first, then remaining specs
- Added
- Backend Specs: Migrated backend specs from
tree_haverto this gem- Comprehensive tests for
Commonmarker::Merge::Backendmodule - Tests for
Language,Parser,Tree,Node, andPointclasses - Integration tests for
BackendRegistryavailability checking
- Comprehensive tests for
- MergeGemRegistry Integration: Registers with
Ast::Merge::RSpec::MergeGemRegistry- Enables automatic RSpec dependency tag support
- Registers as category
:markdown
- BackendRegistry Integration: Now uses
register_taginstead ofregister_availability_checker- Registers with
require_path: "commonmarker/merge"enabling lazy loading - Tree_haver can now detect and load this backend without hardcoded knowledge
- Supports fully dynamic tag system in tree_haver
- Registers with
- SmartMerger: Added
**extra_optionsfor forward compatibility- Accepts additional options that may be added to base class in future
- Passes all options through to
Markdown::Merge::SmartMerger
Dependencies
commonmarker(~> 2.0) - Comrak Rust parsermarkdown-merge(~> 1.0) - central merge infrastructure for markdownversion_gem(~> 1.1)
Security
Many paths lead to being a sponsor or a backer of this project. Are you on such a path?