class markdown::TextRendererBuilder

sys::Obj
  markdown::TextRendererBuilder

@Js

Source

Builder for configuring a TextRenderer

build

TextRenderer build()

Source

Get the configured TextRenderer

extensions

This extensions(MarkdownExt[] exts)

Source

Enable the given extensions on this renderer.

nodeRendererFactory

This nodeRendererFactory(|TextContext->NodeRenderer| factory)

Source

Add a factory for instantiating a node renderer (done when rendering). This allows This allows to override the rendering of node types or define rendering for custom node types.

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).

withLineBreakRendering

This withLineBreakRendering(LineBreakRendering lineBreakRendering)

Source

Configure how line breaks (newlines) are rendered. The default is LineBreakRendering.compact