Package org.commonmark.renderer.text
Interface TextContentNodeRendererContext
-
- All Known Implementing Classes:
TextContentRenderer.RendererContext
public interface TextContentNodeRendererContext
-
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description TextContentWritergetWriter()LineBreakRenderinglineBreakRendering()Controls how line breaks should be rendered, seeLineBreakRendering.voidrender(Node node)Render the specified node and its children using the configured renderers.booleanstripNewlines()Deprecated.UselineBreakRendering()instead
-
-
-
Method Detail
-
lineBreakRendering
LineBreakRendering lineBreakRendering()
Controls how line breaks should be rendered, seeLineBreakRendering.
-
stripNewlines
@Deprecated boolean 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
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
-
-