Implement the core composition types for the transformation pipeline.
Scope
MarkdownTransformer — functional interface (SAM) receiving and returning a MarkdownDocumentMarkdownPipeline — ordered composition of MarkdownTransformer instances; applies each in sequence
Notes
- Transformers may mutate the AST in-place and return the same document, or return a new one — the interface should support both
MarkdownPipeline should be easy to construct both programmatically and from a Gradle task config
Acceptance criteria
- Multiple transformers compose correctly and execute in declared order
- An empty pipeline returns the document unchanged
Implement the core composition types for the transformation pipeline.
Scope
MarkdownTransformer— functional interface (SAM) receiving and returning aMarkdownDocumentMarkdownPipeline— ordered composition ofMarkdownTransformerinstances; applies each in sequenceNotes
MarkdownPipelineshould be easy to construct both programmatically and from a Gradle task configAcceptance criteria