Class FootnoteNodeFormatter
- java.lang.Object
-
- com.vladsch.flexmark.formatter.NodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
- com.vladsch.flexmark.ext.footnotes.internal.FootnoteNodeFormatter
-
- All Implemented Interfaces:
NodeFormatter
,PhasedNodeFormatter
public class FootnoteNodeFormatter extends NodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
FootnoteNodeFormatter.Factory
-
Field Summary
Fields Modifier and Type Field Description static DataKey<java.util.Map<java.lang.String,java.lang.String>>
FOOTNOTE_TRANSLATION_MAP
static DataKey<java.util.Map<java.lang.String,java.lang.String>>
FOOTNOTE_UNIQUIFICATION_MAP
-
Fields inherited from class com.vladsch.flexmark.formatter.NodeRepositoryFormatter
FORMATTING_PHASES, lastReference, myComparator, recheckUndefinedReferences, referenceList, referenceRepository, referenceUniqificationMap, repositoryNodesDone, unusedReferences
-
-
Constructor Summary
Constructors Constructor Description FootnoteNodeFormatter(DataHolder options)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Set<java.lang.Class<?>>
getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.java.util.Set<NodeFormattingHandler<?>>
getNodeFormattingHandlers()
ElementPlacement
getReferencePlacement()
ElementPlacementSort
getReferenceSort()
FootnoteRepository
getRepository(DataHolder options)
void
renderReferenceBlock(FootnoteBlock node, NodeFormatterContext context, MarkdownWriter markdown)
-
Methods inherited from class com.vladsch.flexmark.formatter.NodeRepositoryFormatter
getFormattingPhases, getReferenceComparator, getTranslationReferencePlacement, makeReferencesUnique, modifyTransformedReference, renderDocument, renderReference, transformReferenceId, uniquifyIds
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatter
getBlockQuoteLikePrefixChar
-
-
-
-
Constructor Detail
-
FootnoteNodeFormatter
public FootnoteNodeFormatter(DataHolder options)
-
-
Method Detail
-
getRepository
public FootnoteRepository getRepository(DataHolder options)
- Specified by:
getRepository
in classNodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
getReferencePlacement
public ElementPlacement getReferencePlacement()
- Specified by:
getReferencePlacement
in classNodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
getReferenceSort
public ElementPlacementSort getReferenceSort()
- Specified by:
getReferenceSort
in classNodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
renderReferenceBlock
public void renderReferenceBlock(FootnoteBlock node, NodeFormatterContext context, MarkdownWriter markdown)
- Specified by:
renderReferenceBlock
in classNodeRepositoryFormatter<FootnoteRepository,FootnoteBlock,Footnote>
-
getNodeFormattingHandlers
@Nullable public java.util.Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
@Nullable public java.util.Set<java.lang.Class<?>> getNodeClasses()
Description copied from interface:NodeFormatter
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.- Returns:
- the nodes of interest to this formatter during formatting.
-
-