ParserHooks
laika.api.bundle.ParserHooks
class ParserHooks(val postProcessBlocks: Seq[Block] => Seq[Block], val postProcessDocument: UnresolvedDocument => UnresolvedDocument, val preProcessInput: String => String)
Hooks for markup parsers to control aspects beyond the individual span and block parsers defined for the host language.
Value parameters
- postProcessBlocks
-
function invoked for every block container, allowing post-processing of the result
- postProcessDocument
-
function invoked after parsing but before rewriting, allowing to modify the document
- preProcessInput
-
function invoked before parsing, allowing to pre-process the input
Attributes
- Source
- ParserBundle.scala
- Graph
-
- Supertypes
Members list
In this article