Package org.commonmark.renderer.text
Interface TextContentNodeRendererContext
-
- All Known Implementing Classes:
TextContentRenderer.RendererContext
public interface TextContentNodeRendererContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description TextContentWriter
getWriter()
void
render(Node node)
Render the specified node and its children using the configured renderers.boolean
stripNewlines()
-
-
-
Method Detail
-
stripNewlines
boolean stripNewlines()
- Returns:
- true for stripping new lines and render text as "single line", false for keeping all line breaks.
-
getWriter
TextContentWriter getWriter()
- Returns:
- the writer to use
-
render
void render(Node node)
Render the specified node and its children using the configured renderers. This should be used to render child nodes; be careful not to pass the node that is being rendered, that would result in an endless loop.- Parameters:
node
- the node to render
-
-