Top Methods
com.vladsch.flexmark.html.renderer

public Interface LinkResolverContext

extends LinkResolverBasicContext
Known Direct Subinterfaces
com.vladsch.flexmark.html.renderer.NodeRendererContext, com.vladsch.flexmark.formatter.NodeFormatterContext
Imports
com.vladsch.flexmark.html.HtmlRenderer, com.vladsch.flexmark.util.ast.Document, .Node, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.html.Attributes, org.jetbrains.annotations.NotNull, .Nullable

Method Summary

Modifier and TypeMethod and Description
public @NotNull String

Returns:

an encoded URL (depending on the configuration)
encodeUrl
(@NotNull CharSequence
to be encoded
url
)

public @NotNull Node

Returns:

the current node being rendered
getCurrentNode
()

public @NotNull Document
public @NotNull DataHolder

Returns:

the current renderer options DataHolder
getOptions
()

Redeclares com.vladsch.flexmark.html.renderer.LinkResolverBasicContext.getOptions.

Get the current rendering context DataHolder.

public void
render(@NotNull Node
the node to render
node
)

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

public void
renderChildren(@NotNull Node
node the children of which are to be rendered
parent
)

Render the children of the node, used by custom renderers

Method Detail

encodeUrlback to summary
public @NotNull String encodeUrl(@NotNull CharSequence url)
Parameters
url:@NotNull CharSequence

to be encoded

Returns:@NotNull String

an encoded URL (depending on the configuration)

Annotations
@NotNull
getCurrentNodeback to summary
public @NotNull Node getCurrentNode()
Returns:@NotNull Node

the current node being rendered

Annotations
@NotNull
getDocumentback to summary
public @NotNull Document getDocument()

Redeclares com.vladsch.flexmark.html.renderer.LinkResolverBasicContext.getDocument.

Returns:@NotNull Document

the Document node of the current context

Annotations
@NotNull
getOptionsback to summary
public @NotNull DataHolder getOptions()

Redeclares com.vladsch.flexmark.html.renderer.LinkResolverBasicContext.getOptions.

Get the current rendering context DataHolder. These are the options passed or set on the HtmlRenderer#builder() or passed to HtmlRenderer#builder(DataHolder). To get the document options you should use getDocument() as the data holder.

Returns:@NotNull DataHolder

the current renderer options DataHolder

Annotations
@NotNull
renderback to summary
public void render(@NotNull 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:@NotNull Node

the node to render

renderChildrenback to summary
public void renderChildren(@NotNull Node parent)

Render the children of the node, used by custom renderers

Parameters
parent:@NotNull Node

node the children of which are to be rendered