Top Description Methods
jdk.internal.org.commonmark.renderer.markdown

public Interface MarkdownNodeRendererContext

Known Direct Implementers
jdk.internal.org.commonmark.renderer.markdown.MarkdownRenderer.RendererContext
Imports
jdk.internal.org.commonmark.node.Node, java.util.Set

Context that is passed to custom node renderers, see MarkdownNodeRendererFactory#create.

Method Summary

Modifier and TypeMethod and Description
public Set<Character>

Returns:

additional special characters that need to be escaped if they occur in normal text; currently only ASCII characters are allowed
getSpecialCharacters
()

public MarkdownWriter

Returns:

the writer to use
getWriter
()

public void
render(Node
the node to render
node
)

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

Method Detail

getSpecialCharactersback to summary
public Set<Character> getSpecialCharacters()
Returns:Set<Character>

additional special characters that need to be escaped if they occur in normal text; currently only ASCII characters are allowed

getWriterback to summary
public MarkdownWriter getWriter()
Returns:MarkdownWriter

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