Top Inners Fields Constructors Methods
com.vladsch.flexmark.ext.wikilink.internal

public Class WikiLinkNodeFormatter

extends Object
implements PhasedNodeFormatter
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.formatter.PhasedNodeFormatter, com.vladsch.flexmark.formatter.NodeFormatter
Imports
com.vladsch.flexmark.ext.wikilink.WikiImage, .WikiLink, .WikiNode, com.vladsch.flexmark.formatter.*, com.vladsch.flexmark.util.ast.Document, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.sequence.BasedSequence, com.vladsch.flexmark.util.sequence.mappers.SpaceMapper, org.jetbrains.annotations.NotNull, .Nullable, java.util.Arrays, .HashSet, .Map, .Set

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
private Map<String, String>
public static final HashSet<FormattingPhase>
private WikiLinkOptions

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
private CharSequence
private CharSequence
public @Nullable Set<FormattingPhase>
public @Nullable Set<Class<?>>
getNodeClasses()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.

public @Nullable Set<NodeFormattingHandler<?>>
private void
public void
private void
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

attributeUniquificationIdMapback to summary
private Map<String, String> attributeUniquificationIdMap
FORMATTING_PHASESback to summary
public static final HashSet<FormattingPhase> FORMATTING_PHASES
optionsback to summary
private WikiLinkOptions options

Constructor Detail

WikiLinkNodeFormatterback to summary
public WikiLinkNodeFormatter(DataHolder options)

Method Detail

escapePipeAnchorsback to summary
private CharSequence escapePipeAnchors(CharSequence chars)
escapeUnescapedPipeAnchorsback to summary
private CharSequence escapeUnescapedPipeAnchors(CharSequence chars)
getFormattingPhasesback to summary
public @Nullable Set<FormattingPhase> getFormattingPhases()

Implements com.vladsch.flexmark.formatter.PhasedNodeFormatter.getFormattingPhases.

Annotations
@Nullable
@Override
getNodeClassesback to summary
public @Nullable Set<Class<?>> getNodeClasses()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Doc from com.vladsch.flexmark.formatter.NodeFormatter.getNodeClasses.

Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.

Returns:@Nullable Set<Class<?>>

the nodes of interest to this formatter during formatting.

Annotations
@Nullable
@Override
getNodeFormattingHandlersback to summary
public @Nullable Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()

Implements com.vladsch.flexmark.formatter.NodeFormatter.getNodeFormattingHandlers.

Returns:@Nullable Set<NodeFormattingHandler<?>>

Doc from com.vladsch.flexmark.formatter.NodeFormatter.getNodeFormattingHandlers.

the mapping of nodes this renderer handles to rendering function

Annotations
@Nullable
@Override
renderback to summary
private void render(WikiImage node, NodeFormatterContext context, MarkdownWriter markdown)
renderDocumentback to summary
public void renderDocument(@NotNull NodeFormatterContext context, @NotNull MarkdownWriter markdown, @NotNull Document document, @NotNull FormattingPhase phase)
Annotations
@Override
renderTextback to summary
private void renderText(WikiNode node, NodeFormatterContext context, MarkdownWriter markdown)
com.vladsch.flexmark.ext.wikilink.internal back to summary

public Class WikiLinkNodeFormatter.Factory

extends Object
implements NodeFormatterFactory
Class Inheritance
  • java.lang.Object
  • com.vladsch.flexmark.ext.wikilink.internal.WikiLinkNodeFormatter.Factory
All Implemented Interfaces
com.vladsch.flexmark.formatter.NodeFormatterFactory, com.vladsch.flexmark.util.dependency.Dependent

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull NodeFormatter
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

createback to summary
public @NotNull NodeFormatter create(@NotNull DataHolder options)
Annotations
@NotNull
@Override