Module: Coradoc::Mirror::Handlers::Include

Defined in:
lib/coradoc/mirror/handlers/include.rb

Overview

Include directive handler.

Emits a ProseMirror-compatible include node carrying the target path and parsed options as typed attrs. Graph-mode preservation: the node survives serialization and round-trips back to a CoreModel::Include via the reverse builder.

Class Method Summary collapse

Class Method Details

.call(element, context:) ⇒ Object



13
14
15
# File 'lib/coradoc/mirror/handlers/include.rb', line 13

def self.call(element, context:)
  Node::Include.new(attrs: build_attrs(element))
end