Package org.commonmark.renderer.text
Interface TextContentNodeRendererContext
- All Known Implementing Classes:
TextContentRenderer.RendererContext
public interface TextContentNodeRendererContext
-
Method Summary
Modifier and TypeMethodDescriptionControls how line breaks should be rendered, seeLineBreakRendering
.void
Render the specified node and its children using the configured renderers.boolean
Deprecated.
-
Method Details
-
lineBreakRendering
LineBreakRendering lineBreakRendering()Controls how line breaks should be rendered, seeLineBreakRendering
. -
stripNewlines
Deprecated.UselineBreakRendering()
instead- 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
-
lineBreakRendering()
instead