Package com.vladsch.flexmark.formatter
Interface PhasedNodeFormatter
-
- All Superinterfaces:
NodeFormatter
- All Known Implementing Classes:
NodeRepositoryFormatter
public interface PhasedNodeFormatter extends NodeFormatter
A renderer for a document node for a specific rendering phase
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description @Nullable Set<FormattingPhase>
getFormattingPhases()
void
renderDocument(@NotNull NodeFormatterContext context, @NotNull MarkdownWriter markdown, @NotNull com.vladsch.flexmark.util.ast.Document document, @NotNull FormattingPhase phase)
Render the specified node.-
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatter
getBlockQuoteLikePrefixChar, getNodeClasses, getNodeFormattingHandlers
-
-
-
-
Method Detail
-
getFormattingPhases
@Nullable @Nullable Set<FormattingPhase> getFormattingPhases()
-
renderDocument
void renderDocument(@NotNull @NotNull NodeFormatterContext context, @NotNull @NotNull MarkdownWriter markdown, @NotNull @NotNull com.vladsch.flexmark.util.ast.Document document, @NotNull @NotNull FormattingPhase phase)
Render the specified node.- Parameters:
context
- node renderer context instancemarkdown
- markdown writer instancedocument
- the document node to renderphase
- rendering phase for which to generate the output. Will be any ofFormattingPhase
exceptFormattingPhase.DOCUMENT
because this phase is used for the non-phased node rendering
-
-