Skip to content

Releases: kettle-rb/commonmarker-merge

v1.0.1

19 Feb 14:23
v1.0.1
d94ef22

Choose a tag to compare

1.0.1 - 2026-02-19

  • TAG: v1.0.1
  • COVERAGE: 86.52% -- 154/178 lines in 7 files
  • BRANCH COVERAGE: 47.73% -- 21/44 branches in 7 files
  • 86.44% documented

Added

  • AGENTS.md

Changed

Official Discord 👉️ Live Chat on Discord

Many paths lead to being a sponsor or a backer of this project. Are you on such a path?

OpenCollective Backers OpenCollective Sponsors Sponsor Me on Github Liberapay Goal Progress Donate on PayPal

Buy me a coffee Donate on Polar Donate to my FLOSS efforts at ko-fi.com Donate to my FLOSS efforts using Patreon

v1.0.0

02 Feb 02:31
v1.0.0
c04cfe2

Choose a tag to compare

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-merge for Commonmarker backend
  • Commonmarker::Merge::SmartMerger - smart merging with commonmarker defaults
    • Default freeze token: "commonmarker-merge"
    • Default inner_merge_code_blocks: false
  • Commonmarker::Merge::FileAnalysis - file analysis with commonmarker backend
  • Commonmarker::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, MergeResult
    • TableMatchAlgorithm, TableMatchRefiner, CodeBlockMerger
    • NodeTypeNormalizer
  • FFI backend isolation for test suite
    • Added bin/rspec-ffi script to run FFI specs in isolation (before MRI backend loads)
    • Added spec/spec_ffi_helper.rb for FFI-specific test configuration
    • Updated Rakefile with ffi_specs and remaining_specs tasks
    • The :test task now runs FFI specs first, then remaining specs
  • Backend Specs: Migrated backend specs from tree_haver to this gem
    • Comprehensive tests for Commonmarker::Merge::Backend module
    • Tests for Language, Parser, Tree, Node, and Point classes
    • Integration tests for BackendRegistry availability checking
  • MergeGemRegistry Integration: Registers with Ast::Merge::RSpec::MergeGemRegistry
    • Enables automatic RSpec dependency tag support
    • Registers as category :markdown
  • BackendRegistry Integration: Now uses register_tag instead of register_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
  • SmartMerger: Added **extra_options for 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 parser
  • markdown-merge (~> 1.0) - central merge infrastructure for markdown
  • version_gem (~> 1.1)

Security

Official Discord 👉️ Live Chat on Discord

Many paths lead to being a sponsor or a backer of this project. Are you on such a path?

OpenCollective Backers OpenCollective Sponsors Sponsor Me on Github Liberapay Goal Progress Donate on PayPal

Buy me a coffee Donate on Polar Donate to my FLOSS efforts at ko-fi.com Donate to my FLOSS efforts using Patreon