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
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

Merges this instance with the specified base.

Merges this instance with the specified base. The functions specified in the base are always invoked before the functions in this instance.

Attributes

Source
ParserBundle.scala

Concrete fields

val postProcessBlocks: Seq[Block] => Seq[Block]

Attributes

Source
ParserBundle.scala
val preProcessInput: String => String

Attributes

Source
ParserBundle.scala