Class WikiLinkNodeFormatter
java.lang.Object
com.vladsch.flexmark.ext.wikilink.internal.WikiLinkNodeFormatter
- All Implemented Interfaces:
NodeFormatter, PhasedNodeFormatter
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate CharSequenceescapePipeAnchors(CharSequence chars) private CharSequence@Nullable Set<FormattingPhase> Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.@Nullable Set<NodeFormattingHandler<?>> private voidrender(WikiImage node, NodeFormatterContext context, MarkdownWriter markdown) private voidrender(WikiLink node, NodeFormatterContext context, MarkdownWriter markdown) voidrenderDocument(@NotNull NodeFormatterContext context, @NotNull MarkdownWriter markdown, @NotNull Document document, @NotNull FormattingPhase phase) Render the specified node.private voidrenderLink(WikiNode node, NodeFormatterContext context, MarkdownWriter markdown) private voidrenderText(WikiNode node, NodeFormatterContext context, MarkdownWriter markdown) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NodeFormatter
getBlockQuoteLikePrefixChar
-
Field Details
-
FORMATTING_PHASES
-
attributeUniquificationIdMap
-
options
-
-
Constructor Details
-
WikiLinkNodeFormatter
-
-
Method Details
-
getNodeFormattingHandlers
- Specified by:
getNodeFormattingHandlersin interfaceNodeFormatter- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
Description copied from interface:NodeFormatterCollect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Specified by:
getNodeClassesin interfaceNodeFormatter- Returns:
- the nodes of interest to this formatter during formatting.
-
getFormattingPhases
- Specified by:
getFormattingPhasesin interfacePhasedNodeFormatter
-
renderDocument
public void renderDocument(@NotNull @NotNull NodeFormatterContext context, @NotNull @NotNull MarkdownWriter markdown, @NotNull @NotNull Document document, @NotNull @NotNull FormattingPhase phase) Description copied from interface:PhasedNodeFormatterRender the specified node.- Specified by:
renderDocumentin interfacePhasedNodeFormatter- 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 ofFormattingPhaseexceptFormattingPhase.DOCUMENTbecause this phase is used for the non-phased node rendering
-
render
-
render
-
renderText
-
escapeUnescapedPipeAnchors
-
escapePipeAnchors
-
renderLink
-