RewritePhase

laika.ast.RewritePhase
See theRewritePhase companion object
sealed trait RewritePhase

Represents one of the rewrite phases for document AST transformations.

These transformations are performed between parsing and rendering and deal with tasks like link validation, resolving substitution variables, directive processing or other tasks.

A phased model allows to separate rules that contribute new nodes to the AST from nodes that analyze the existing AST, e.g. for producing navigation artifacts. Running them all in one phase would create a chicken-and-egg scenario that would usually lead to undesired or unexpected results.

Attributes

Companion
object
Source
RewriteRules.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
object Build
class Render
object Resolve
In this article