Package com.vladsch.flexmark.formatter
Interface NodeFormatter
-
- All Known Subinterfaces:
PhasedNodeFormatter
- All Known Implementing Classes:
NodeRepositoryFormatter
public interface NodeFormatter
A renderer for a set of node types.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description default char
getBlockQuoteLikePrefixChar()
Return character which compacts like block quote prefix@Nullable Set<Class<?>>
getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST by all formatting extensions.@Nullable Set<NodeFormattingHandler<?>>
getNodeFormattingHandlers()
-
-
-
Method Detail
-
getNodeFormattingHandlers
@Nullable @Nullable Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
- Returns:
- the mapping of nodes this renderer handles to rendering function
-
getNodeClasses
@Nullable @Nullable Set<Class<?>> getNodeClasses()
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.
-
getBlockQuoteLikePrefixChar
default char getBlockQuoteLikePrefixChar()
Return character which compacts like block quote prefix- Returns:
- character or NUL if none
-
-