RewriteRules

laika.rst.bundle.RewriteRules
class RewriteRules(textRoles: Seq[TextRole]) extends RewriteRulesBuilder

The default rewrite rules that get applied to the raw document tree after parsing reStructuredText markup. These rules are responsible for resolving substitution references and interpreted text which are specific to reStructuredText and get usually executed alongside the generic rules. .

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any

Members list

Type members

Classlikes

class DefaultRules(cursor: DocumentCursor)

Attributes

Supertypes
class Object
trait Matchable
class Any

Value members

Concrete methods

Provides the default rewrite rules specific to reStructuredText for the specified document. These rules usually get executed alongside the generic default rules.

Provides the default rewrite rules specific to reStructuredText for the specified document. These rules usually get executed alongside the generic default rules.

Attributes

Inherited methods

def andThen[A](g: ConfigResult[RewriteRules] => A): T1 => A

Attributes

Inherited from:
Function1
def compose[A](g: A => DocumentCursor): A => R

Attributes

Inherited from:
Function1
override def toString(): String

Returns a string representation of the object.

Returns a string representation of the object.

The default representation is platform dependent.

Attributes

Returns

a string representation of the object.

Definition Classes
Function1 -> Any
Inherited from:
Function1

Concrete fields

val baseRoleElements: Map[String, String => Span]