Top Description Methods
com.vladsch.flexmark.formatter

public Interface PhasedNodeFormatter

extends NodeFormatter
Known Direct Implementers
com.vladsch.flexmark.formatter.NodeRepositoryFormatter
Imports
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<FormattingPhase>
public void
renderDocument(@NotNull NodeFormatterContext
node renderer context instance
context
,
@NotNull MarkdownWriter
markdown writer instance
markdown
,
@NotNull Document
the document node to render
document
,
@NotNull FormattingPhase
rendering phase for which to generate the output. Will be any of FormattingPhase except FormattingPhase#DOCUMENT because this phase is used for the non-phased node rendering
phase
)

Render the specified node.

Inherited from com.vladsch.flexmark.formatter.NodeFormatter:
getBlockQuoteLikePrefixChargetNodeClassesgetNodeFormattingHandlers

Method Detail

getFormattingPhasesback to summary
public @Nullable Set<FormattingPhase> getFormattingPhases()
Annotations
@Nullable
renderDocumentback to summary
public void renderDocument(@NotNull NodeFormatterContext context, @NotNull MarkdownWriter markdown, @NotNull Document document, @NotNull FormattingPhase phase)

Render the specified node.

Parameters
context:@NotNull NodeFormatterContext

node renderer context instance

markdown:@NotNull MarkdownWriter

markdown writer instance

document:@NotNull Document

the document node to render

phase:@NotNull FormattingPhase

rendering phase for which to generate the output. Will be any of FormattingPhase except FormattingPhase#DOCUMENT because this phase is used for the non-phased node rendering