Top Description Methods
com.vladsch.flexmark.html.renderer

public Interface PhasedNodeRenderer

extends NodeRenderer
Imports
com.vladsch.flexmark.html.HtmlWriter, com.vladsch.flexmark.util.ast.Document, org.jetbrains.annotations.NotNull, .Nullable, java.util.Set

A renderer for a document node for a specific rendering phase

Method Summary

Modifier and TypeMethod and Description
public @Nullable Set<RenderingPhase>
public void
renderDocument(@NotNull NodeRendererContext
node renderer context instance
context
,
@NotNull HtmlWriter
html writer instance
html
,
@NotNull Document
the document node to render
document
,
@NotNull RenderingPhase
rendering phase for which to generate the output. Will be any of RenderingPhase no rendering should be done if phase is RenderingPhase#BODY because this phase is used for the non-phased node rendering. For body phase this method is called before the node renderer calls are made so it is a good place to reset internal structures for start of each phase.
phase
)

Render the specified node.

Inherited from com.vladsch.flexmark.html.renderer.NodeRenderer:
getNodeRenderingHandlers

Method Detail

getRenderingPhasesback to summary
public @Nullable Set<RenderingPhase> getRenderingPhases()
Annotations
@Nullable
renderDocumentback to summary
public void renderDocument(@NotNull NodeRendererContext context, @NotNull HtmlWriter html, @NotNull Document document, @NotNull RenderingPhase phase)

Render the specified node.

Parameters
context:@NotNull NodeRendererContext

node renderer context instance

html:@NotNull HtmlWriter

html writer instance

document:@NotNull Document

the document node to render

phase:@NotNull RenderingPhase

rendering phase for which to generate the output. Will be any of RenderingPhase no rendering should be done if phase is RenderingPhase#BODY because this phase is used for the non-phased node rendering. For body phase this method is called before the node renderer calls are made so it is a good place to reset internal structures for start of each phase.