RewriteRules

Factory methods and utilities for dealing with rewrite rules.

Companion:
class
trait Product
trait Mirror
class Object
trait Matchable
class Any

Type members

Classlikes

case class ChainedRewriteRules[T](rules: Seq[RewriteRule[T]]) extends T => RewriteAction[T]

Chains the specified rewrite rules so that they get applied to matching elements in the order specified in the given sequence.

Chains the specified rewrite rules so that they get applied to matching elements in the order specified in the given sequence.

Inherited types

type MirroredElemLabels <: Tuple

The names of the product elements

The names of the product elements

Inherited from:
Mirror
type MirroredLabel <: String

The name of the type

The name of the type

Inherited from:
Mirror

Value members

Concrete methods

Chains the specified rule factory functions into a single factory function.

Chains the specified rule factory functions into a single factory function.

def defaultsFor(root: DocumentTreeRoot, phase: RewritePhase, slugBuilder: String => String): Seq[RewriteRulesBuilder]

The default built-in rewrite rules, dealing with section building and link resolution. These are not installed as part of any default extension bundle as they have specific ordering requirements not compatible with the standard bundle ordering in OperationConfig.

The default built-in rewrite rules, dealing with section building and link resolution. These are not installed as part of any default extension bundle as they have specific ordering requirements not compatible with the standard bundle ordering in OperationConfig.

Creates a new instance without any rules. Applying an empty instance to an AST will always return the AST unchanged.

Creates a new instance without any rules. Applying an empty instance to an AST will always return the AST unchanged.

Creates a new instance containing only this single rule for blocks.

Creates a new instance containing only this single rule for blocks.

Creates a new instance containing only this single rule for spans.

Creates a new instance containing only this single rule for spans.

Creates a new instance containing only this single rule for template spans.

Creates a new instance containing only this single rule for template spans.