DSL interface for configuring a Processor instance.
Applied to a processor instance via Object.assign(instance, DslMixin).
The process property behaves as a setter when called with a single Function
argument (stores the process block), or as a passthrough caller otherwise.
Every processor type (Preprocessor, TreeProcessor, Postprocessor, IncludeProcessor,
DocinfoProcessor, BlockProcessor, BlockMacroProcessor, InlineMacroProcessor) extends
the Processor base class, so the node-builder helpers below (and their
createBlock/createInline shorthands) are available on this inside the
registration function and the bound process callback for all of them, not just
block processors.
DSL interface for configuring a Processor instance. Applied to a processor instance via
Object.assign(instance, DslMixin).The
processproperty behaves as a setter when called with a single Function argument (stores the process block), or as a passthrough caller otherwise.Every processor type (Preprocessor, TreeProcessor, Postprocessor, IncludeProcessor, DocinfoProcessor, BlockProcessor, BlockMacroProcessor, InlineMacroProcessor) extends the Processor base class, so the node-builder helpers below (and their
createBlock/createInlineshorthands) are available onthisinside the registration function and the boundprocesscallback for all of them, not just block processors.