APIdia Launch Partner
Top Methods
jdk.internal.org.commonmark.renderer.text

public Interface TextContentNodeRendererContext

Known Direct Implementers
jdk.internal.org.commonmark.renderer.text.TextContentRenderer.RendererContext
Imports
jdk.internal.org.commonmark.node.Node

Method Summary

Modifier and TypeMethod and Description
public TextContentWriter
getWriter()

Returns: the writer to use

public void
render(Node
the node to render
node
)

Render the specified node and its children using the configured renderers.

public boolean
stripNewlines()

Returns: true for stripping new lines and render text as "single line", false for keeping all line breaks.

Method Detail

getWriterback to summary
public TextContentWriter getWriter()
Returns:TextContentWriter

the writer to use

renderback to summary
public 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:Node

the node to render

stripNewlinesback to summary
public boolean stripNewlines()
Returns:boolean

true for stripping new lines and render text as "single line", false for keeping all line breaks.