Package org.commonmark.renderer.text
Interface TextContentNodeRendererContext
- All Known Implementing Classes:
TextContentRenderer.RendererContext
public interface TextContentNodeRendererContext
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Render the specified node and its children using the configured renderers.boolean
-
Method Details
-
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
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
-