public static class TextContentRenderer.Builder extends Object
TextContentRenderer. See methods for default configuration.| Constructor and Description |
|---|
Builder() |
| Modifier and Type | Method and Description |
|---|---|
TextContentRenderer |
build() |
TextContentRenderer.Builder |
extensions(Iterable<? extends Extension> extensions) |
TextContentRenderer.Builder |
nodeRendererFactory(TextContentNodeRendererFactory nodeRendererFactory)
Add a factory for instantiating a node renderer (done when rendering).
|
TextContentRenderer.Builder |
stripNewlines(boolean stripNewlines)
Set the value of flag for stripping new lines.
|
public TextContentRenderer build()
TextContentRendererpublic TextContentRenderer.Builder stripNewlines(boolean stripNewlines)
stripNewlines - true for stripping new lines and render text as "single line",
false for keeping all line breaksthispublic TextContentRenderer.Builder nodeRendererFactory(TextContentNodeRendererFactory nodeRendererFactory)
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.)
nodeRendererFactory - the factory for creating a node rendererthispublic TextContentRenderer.Builder extensions(Iterable<? extends Extension> extensions)
extensions - extensions to use on this text content rendererthisCopyright © 2021. All rights reserved.