Module: Coradoc::IncludeSelectors
- Defined in:
- lib/coradoc/include_selectors.rb,
lib/coradoc/include_selectors/tags.rb,
lib/coradoc/include_selectors/lines.rb,
lib/coradoc/include_selectors/indent.rb,
lib/coradoc/include_selectors/level_offset.rb
Overview
Pure-function selectors applied to resolved include content.
Each selector owns exactly one transformation (MECE):
Tags // tag::X[] ... // end::X[] region extraction
Lines line-range selection (1..N;2;3..4)
Indent leading-whitespace normalization
LevelOffset section-level shift (applied AFTER parsing)
Tags, Lines, and Indent take a String and return a String. LevelOffset takes a parsed CoreModel and returns a new CoreModel.
The processor orchestrates the order:
1. Tags (or Lines; Lines wins if both specified — SPEC 3.5)
2. Indent
3. parse → CoreModel
4. LevelOffset
Defined Under Namespace
Modules: Indent, LevelOffset, Lines, Tags