TreeMapperOps

abstract class TreeMapperOps[F[_]]

Operations for builders of transformers that allow to modify the tree or documents between parsing and rendering.

This hook differs from the rewrite rules in two ways: first it does not only operate on the AST nodes of a document, therefore it can also change its path or config. Secondly it allows for effectful transformations which are not available in the pure laika-core module.

class Object
trait Matchable
class Any
class Builder[F]
class Builder[F]

Type members

Types

type MapRes

Value members

Abstract methods

Creates a new transformer that applies the specified effectful function to the parsed tree before rendering.

Creates a new transformer that applies the specified effectful function to the parsed tree before rendering.

Concrete methods

def evalMapDocuments(f: Document => F[Document]): MapRes

Creates a new transformer that applies the specified effectful function to each document in the parsed tree before rendering.

Creates a new transformer that applies the specified effectful function to each document in the parsed tree before rendering.

def mapDocuments(f: Document => Document): MapRes

Creates a new transformer that applies the specified function to each document in the parsed tree before rendering.

Creates a new transformer that applies the specified function to each document in the parsed tree before rendering.

Creates a new transformer that applies the specified function to the parsed tree before rendering.

Creates a new transformer that applies the specified function to the parsed tree before rendering.

Concrete fields

val F: Sync[F]