Class MacrosNodeFormatter
java.lang.Object
com.vladsch.flexmark.formatter.NodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
com.vladsch.flexmark.ext.macros.internal.MacrosNodeFormatter
- All Implemented Interfaces:
NodeFormatter, PhasedNodeFormatter
public class MacrosNodeFormatter
extends NodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionCollect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.@Nullable Set<NodeFormattingHandler<?>> getRepository(DataHolder options) private voidrender(MacroDefinitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) private voidrender(MacroReference node, NodeFormatterContext context, MarkdownWriter markdown) voidrenderReferenceBlock(MacroDefinitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) Methods inherited from class NodeRepositoryFormatter
getFormattingPhases, getReferenceComparator, getTranslationReferencePlacement, makeReferencesUnique, modifyTransformedReference, renderDocument, renderReference, transformReferenceId, uniquifyIdsMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface NodeFormatter
getBlockQuoteLikePrefixChar
-
Field Details
-
MACROS_TRANSLATION_MAP
-
MACROS_UNIQUIFICATION_MAP
-
options
-
-
Constructor Details
-
MacrosNodeFormatter
-
-
Method Details
-
getRepository
- Specified by:
getRepositoryin classNodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
-
getReferencePlacement
- Specified by:
getReferencePlacementin classNodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
-
getReferenceSort
- Specified by:
getReferenceSortin classNodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
-
renderReferenceBlock
public void renderReferenceBlock(MacroDefinitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) - Specified by:
renderReferenceBlockin classNodeRepositoryFormatter<MacroDefinitionRepository, MacroDefinitionBlock, MacroReference>
-
getNodeFormattingHandlers
- 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.- Returns:
- the nodes of interest to this formatter during formatting.
-
render
private void render(MacroDefinitionBlock node, NodeFormatterContext context, MarkdownWriter markdown) -
render
-