Package com.vladsch.flexmark.formatter
Class NodeFormatterSubContext
- java.lang.Object
-
- com.vladsch.flexmark.formatter.NodeFormatterSubContext
-
- All Implemented Interfaces:
ExplicitAttributeIdProvider
,NodeFormatterContext
,TranslationContext
,LinkResolverBasicContext
,LinkResolverContext
,com.vladsch.flexmark.util.format.NodeContext<com.vladsch.flexmark.util.ast.Node,NodeFormatterContext>
public abstract class NodeFormatterSubContext extends Object implements NodeFormatterContext
-
-
Field Summary
Fields Modifier and Type Field Description protected MarkdownWriter
markdown
-
Constructor Summary
Constructors Constructor Description NodeFormatterSubContext(@NotNull MarkdownWriter markdown)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
flushTo(@NotNull Appendable out, int maxTrailingBlankLines)
void
flushTo(@NotNull Appendable out, int maxBlankLines, int maxTrailingBlankLines)
@NotNull MarkdownWriter
getMarkdown()
@Nullable com.vladsch.flexmark.util.ast.Node
getRenderingNode()
void
setRenderingNode(@Nullable com.vladsch.flexmark.util.ast.Node renderingNode)
-
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.ExplicitAttributeIdProvider
addExplicitId
-
Methods inherited from interface com.vladsch.flexmark.html.renderer.LinkResolverContext
encodeUrl, getCurrentNode, resolveLink, resolveLink
-
Methods inherited from interface com.vladsch.flexmark.util.format.NodeContext
getCurrentNode, getSubContext, getSubContext, getSubContext
-
Methods inherited from interface com.vladsch.flexmark.formatter.NodeFormatterContext
delegateRender, getBlockQuoteLikePrefixChars, getBlockQuoteLikePrefixPredicate, getDocument, getFormatterOptions, getFormattingPhase, getOptions, getTrackedOffsets, getTrackedSequence, isRestoreTrackedSpaces, nodesOfType, nodesOfType, render, renderChildren, reversedNodesOfType, reversedNodesOfType
-
Methods inherited from interface com.vladsch.flexmark.formatter.TranslationContext
customPlaceholderFormat, getIdGenerator, getMergeContext, getRenderPurpose, getTranslationStore, isPostProcessingNonTranslating, isTransformingText, nonTranslatingSpan, postProcessNonTranslating, postProcessNonTranslating, transformAnchorRef, transformNonTranslating, transformTranslating, translatingRefTargetSpan, translatingSpan
-
-
-
-
Field Detail
-
markdown
protected final MarkdownWriter markdown
-
-
Constructor Detail
-
NodeFormatterSubContext
public NodeFormatterSubContext(@NotNull @NotNull MarkdownWriter markdown)
-
-
Method Detail
-
getRenderingNode
@Nullable public @Nullable com.vladsch.flexmark.util.ast.Node getRenderingNode()
-
setRenderingNode
public void setRenderingNode(@Nullable @Nullable com.vladsch.flexmark.util.ast.Node renderingNode)
-
getMarkdown
@NotNull public @NotNull MarkdownWriter getMarkdown()
- Specified by:
getMarkdown
in interfaceNodeFormatterContext
- Returns:
- the HTML writer to use
-
flushTo
public void flushTo(@NotNull @NotNull Appendable out, int maxTrailingBlankLines)
-
flushTo
public void flushTo(@NotNull @NotNull Appendable out, int maxBlankLines, int maxTrailingBlankLines)
-
-