Class: Markly::Merge::FileAnalysis

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

Overview

File analysis for Markdown files using Markly.

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

  • Forces the :markly backend
  • Sets the default freeze token to “markly-merge”
  • Exposes markly-specific options (flags, extensions)

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 markly-merge

Returns:

  • (String)
"markly-merge"