TextContentRenderer.Builder

Builder for configuring an {@link TextContentRenderer}. See methods for default configuration.

Constructors

this
this()
Undocumented in source.

Members

Functions

build
TextContentRenderer build()

@return the configured {@link TextContentRenderer}

extensions
Builder extensions(Iterable!Extension extensions)

@param extensions extensions to use on this text content renderer @return {@code this}

nodeRendererFactory
Builder nodeRendererFactory(TextContentNodeRendererFactory nodeRendererFactory)

Add a factory for instantiating a node renderer (done when rendering). This allows to override the rendering of node types or define rendering for custom node types. <p> If multiple node renderers for the same node type are created, the one from the factory that was added first "wins". (This is how the rendering for core node types can be overridden; the default rendering comes last.)

stripNewlines
Builder stripNewlines(bool stripNewlines)

Set the value of flag for stripping new lines.

Meta