RenderOverrides

laika.bundle.RenderOverrides

Collects custom render functions that adjust the rendered output of one or more AST nodes.

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Known subtypes
class Overrides

Members list

Type members

Types

type Formatter

The type of the Formatter API a custom render function for these overrides uses.

The type of the Formatter API a custom render function for these overrides uses.

Attributes

Value members

Abstract methods

def value: PartialFunction[(Formatter, Element), String]

Specifies a custom render function that overrides one or more of the default renderers for the output format this instance uses.

Specifies a custom render function that overrides one or more of the default renderers for the output format this instance uses.

This method expects a function that returns a partial function as the result. The outer function allows to capture the writer instance to write to and will only be invoked once. The partial function will then be invoked for each element it is defined at.

Attributes