Package org.commonmark.renderer.text
Class TextContentRenderer
java.lang.Object
org.commonmark.renderer.text.TextContentRenderer
- All Implemented Interfaces:
Renderer
Renders nodes to plain text content with minimal markup-like additions.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for configuring aTextContentRenderer
.private class
static interface
Extension forTextContentRenderer
. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List
<TextContentNodeRendererFactory> private final boolean
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic TextContentRenderer.Builder
builder()
Create a new builder for configuring aTextContentRenderer
.Render the tree of nodes to string.void
render
(Node node, Appendable output) Render the tree of nodes to output.
-
Field Details
-
stripNewlines
private final boolean stripNewlines -
nodeRendererFactories
-
-
Constructor Details
-
TextContentRenderer
-
-
Method Details
-
builder
Create a new builder for configuring aTextContentRenderer
.- Returns:
- a builder
-
render
Description copied from interface:Renderer
Render the tree of nodes to output. -
render
Description copied from interface:Renderer
Render the tree of nodes to string.
-