public class CoreNodeFormatter extends NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>
| Modifier and Type | Field and Description |
|---|---|
static com.vladsch.flexmark.util.options.DataKey<Integer> |
LIST_ITEM_NUMBER |
static com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ListSpacing> |
LIST_ITEM_SPACING |
static com.vladsch.flexmark.util.options.DataKey<Boolean> |
UNWRAPPED_AUTO_LINKS |
static com.vladsch.flexmark.util.options.DataKey<HashSet<String>> |
UNWRAPPED_AUTO_LINKS_MAP |
FORMATTING_PHASES, lastReference, myComparator, recheckUndefinedReferences, referenceList, referenceRepository, repositoryNodesDone, unusedReferences| Constructor and Description |
|---|
CoreNodeFormatter(com.vladsch.flexmark.util.options.DataHolder options) |
| Modifier and Type | Method and Description |
|---|---|
static void |
appendWhiteSpaceBetween(MarkdownWriter markdown,
com.vladsch.flexmark.util.sequence.BasedSequence prev,
com.vladsch.flexmark.util.sequence.BasedSequence next,
boolean preserve,
boolean collapse,
boolean collapseToEOL) |
static void |
appendWhiteSpaceBetween(MarkdownWriter markdown,
com.vladsch.flexmark.util.ast.Node prev,
com.vladsch.flexmark.util.ast.Node next,
boolean preserve,
boolean collapse,
boolean collapseToEOL) |
Set<Class<?>> |
getNodeClasses()
Collect nodes of given type so that they can be quickly accessed without traversing the AST
by all formatting extensions.
|
Set<NodeFormattingHandler<?>> |
getNodeFormattingHandlers() |
com.vladsch.flexmark.util.format.options.ElementPlacement |
getReferencePlacement() |
com.vladsch.flexmark.util.format.options.ElementPlacementSort |
getReferenceSort() |
com.vladsch.flexmark.ast.util.ReferenceRepository |
getRepository(com.vladsch.flexmark.util.options.DataHolder options) |
static com.vladsch.flexmark.util.sequence.BasedSequence |
getSoftLineBreakSpan(com.vladsch.flexmark.util.ast.Node node) |
void |
renderDocument(NodeFormatterContext context,
MarkdownWriter markdown,
com.vladsch.flexmark.util.ast.Document document,
FormattingPhase phase)
Render the specified node.
|
static void |
renderList(com.vladsch.flexmark.ast.ListBlock node,
NodeFormatterContext context,
MarkdownWriter markdown) |
static void |
renderList(com.vladsch.flexmark.ast.ListBlock node,
NodeFormatterContext context,
MarkdownWriter markdown,
List<com.vladsch.flexmark.util.ast.Node> itemList) |
static void |
renderListItem(com.vladsch.flexmark.ast.ListItem node,
NodeFormatterContext context,
MarkdownWriter markdown,
com.vladsch.flexmark.parser.ListOptions listOptions,
CharSequence markerSuffix,
boolean addBlankLineLooseItems) |
static void |
renderLooseItemParagraph(com.vladsch.flexmark.ast.Paragraph node,
NodeFormatterContext context,
MarkdownWriter markdown) |
static void |
renderLooseParagraph(com.vladsch.flexmark.ast.Paragraph node,
NodeFormatterContext context,
MarkdownWriter markdown) |
void |
renderReferenceBlock(com.vladsch.flexmark.ast.Reference node,
NodeFormatterContext context,
MarkdownWriter markdown) |
static void |
renderTextBlockParagraphLines(com.vladsch.flexmark.util.ast.Node node,
NodeFormatterContext context,
MarkdownWriter markdown) |
getFormattingPhases, getReferenceComparator, getTranslationReferencePlacement, modifyTransformedReference, renderReference, transformReferenceIdpublic static final com.vladsch.flexmark.util.options.DataKey<Integer> LIST_ITEM_NUMBER
public static final com.vladsch.flexmark.util.options.DataKey<com.vladsch.flexmark.util.format.options.ListSpacing> LIST_ITEM_SPACING
public static final com.vladsch.flexmark.util.options.DataKey<Boolean> UNWRAPPED_AUTO_LINKS
public CoreNodeFormatter(com.vladsch.flexmark.util.options.DataHolder options)
public Set<Class<?>> getNodeClasses()
NodeFormatterpublic com.vladsch.flexmark.ast.util.ReferenceRepository getRepository(com.vladsch.flexmark.util.options.DataHolder options)
getRepository in class NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>public com.vladsch.flexmark.util.format.options.ElementPlacement getReferencePlacement()
getReferencePlacement in class NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>public com.vladsch.flexmark.util.format.options.ElementPlacementSort getReferenceSort()
getReferenceSort in class NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>public void renderReferenceBlock(com.vladsch.flexmark.ast.Reference node,
NodeFormatterContext context,
MarkdownWriter markdown)
renderReferenceBlock in class NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>public void renderDocument(NodeFormatterContext context, MarkdownWriter markdown, com.vladsch.flexmark.util.ast.Document document, FormattingPhase phase)
PhasedNodeFormatterrenderDocument in interface PhasedNodeFormatterrenderDocument in class NodeRepositoryFormatter<com.vladsch.flexmark.ast.util.ReferenceRepository,com.vladsch.flexmark.ast.Reference,com.vladsch.flexmark.ast.RefNode>context - node renderer context instancemarkdown - markdown writer instancedocument - the document node to renderphase - rendering phase for which to generate the output. Will be any of FormattingPhase except FormattingPhase.DOCUMENT because this phase is used for the non-phased node renderingpublic Set<NodeFormattingHandler<?>> getNodeFormattingHandlers()
public static void renderList(com.vladsch.flexmark.ast.ListBlock node,
NodeFormatterContext context,
MarkdownWriter markdown)
public static void renderList(com.vladsch.flexmark.ast.ListBlock node,
NodeFormatterContext context,
MarkdownWriter markdown,
List<com.vladsch.flexmark.util.ast.Node> itemList)
public static void renderListItem(com.vladsch.flexmark.ast.ListItem node,
NodeFormatterContext context,
MarkdownWriter markdown,
com.vladsch.flexmark.parser.ListOptions listOptions,
CharSequence markerSuffix,
boolean addBlankLineLooseItems)
public static void renderTextBlockParagraphLines(com.vladsch.flexmark.util.ast.Node node,
NodeFormatterContext context,
MarkdownWriter markdown)
public static void renderLooseParagraph(com.vladsch.flexmark.ast.Paragraph node,
NodeFormatterContext context,
MarkdownWriter markdown)
public static void renderLooseItemParagraph(com.vladsch.flexmark.ast.Paragraph node,
NodeFormatterContext context,
MarkdownWriter markdown)
public static com.vladsch.flexmark.util.sequence.BasedSequence getSoftLineBreakSpan(com.vladsch.flexmark.util.ast.Node node)
public static void appendWhiteSpaceBetween(MarkdownWriter markdown, com.vladsch.flexmark.util.ast.Node prev, com.vladsch.flexmark.util.ast.Node next, boolean preserve, boolean collapse, boolean collapseToEOL)
public static void appendWhiteSpaceBetween(MarkdownWriter markdown, com.vladsch.flexmark.util.sequence.BasedSequence prev, com.vladsch.flexmark.util.sequence.BasedSequence next, boolean preserve, boolean collapse, boolean collapseToEOL)
Copyright © 2019. All rights reserved.