Class: Commonmarker::Merge::FileAnalysis

Inherits:
Markdown::Merge::FileAnalysis
  • Object
show all
Defined in:
lib/commonmarker/merge/file_analysis.rb

Overview

File analysis for Markdown files using CommonMarker.

This is a thin wrapper around Markdown::Merge::FileAnalysis that:

  • Forces the :commonmarker backend
  • Sets the default freeze token to "commonmarker-merge"
  • Exposes commonmarker-specific options

Examples:

Basic usage

analysis = FileAnalysis.new(markdown_source)
analysis.statements.each do |node|
  puts "#{node.merge_type}: #{node.type}"
end

With custom freeze token

analysis = FileAnalysis.new(source, freeze_token: "my-merge")

See Also:

  • Underlying implementation

Constant Summary collapse

DEFAULT_FREEZE_TOKEN =

Default freeze token for commonmarker-merge

Returns:

  • (String)
'commonmarker-merge'