Top Description Inners Fields Constructors Methods
com.vladsch.flexmark.html.renderer

public Class CoreNodeRenderer

extends Object
implements NodeRenderer
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.html.renderer.NodeRenderer
Annotations
@SuppressWarnings:WeakerAccess, OverlyCoupledClass
Imports
com.vladsch.flexmark.ast.*, com.vladsch.flexmark.ast.util.LineCollectingVisitor, .ReferenceRepository, com.vladsch.flexmark.html.HtmlRenderer, .HtmlRendererOptions, .HtmlWriter, com.vladsch.flexmark.parser.ListOptions, .Parser, com.vladsch.flexmark.util.ast.Document, .Node, .NonRenderingInline, .TextCollectingVisitor, com.vladsch.flexmark.util.data.DataHolder, com.vladsch.flexmark.util.html.Attribute, .Attributes, com.vladsch.flexmark.util.misc.CharPredicate, com.vladsch.flexmark.util.sequence.BasedSequence, .Escaping, .Range, org.jetbrains.annotations.NotNull, java.util.Arrays, .HashSet, .List, .Set, java.util.regex.Matcher, .Pattern

The node renderer that renders all the core nodes (comes last in the order of node renderers).

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final AttributablePart
private final boolean
private final boolean
private final ListOptions
public static final AttributablePart
private List<Integer>
private List<Range>
private int
private int
private final boolean
private final boolean
public static final AttributablePart
private final boolean
private final ReferenceRepository
public static final AttributablePart

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public Set<NodeRenderingHandler<?>>
public static boolean
private void
outputNextLineBreakSpan(Node node, HtmlWriter html, boolean outputBreakText)

private void
outputSourceLineSpan(Node parentNode, Node startNode, Node endNode, HtmlWriter html)

pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
pack-priv void
private void
public static void
renderHtmlBlock(HtmlBlockBase node, NodeRendererContext context, HtmlWriter html, boolean suppress, boolean escape, boolean trimSpaces)

public static void
renderInlineHtml(HtmlInlineBase node, NodeRendererContext context, HtmlWriter html, boolean suppress, boolean escape)

private boolean
renderLineBreak(String breakText, String suppressInTag, Node node, NodeRendererContext context, HtmlWriter html)

private void
private void
public void
renderTextBlockParagraphLines(Paragraph node, NodeRendererContext context, HtmlWriter html, boolean wrapTextInSpan)

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

CODE_CONTENTback to summary
public static final AttributablePart CODE_CONTENT
codeContentBlockback to summary
private final boolean codeContentBlock
codeSoftLineBreaksback to summary
private final boolean codeSoftLineBreaks
listOptionsback to summary
private final ListOptions listOptions
LOOSE_LIST_ITEMback to summary
public static final AttributablePart LOOSE_LIST_ITEM
myEOLsback to summary
private List<Integer> myEOLs
myLinesback to summary
private List<Range> myLines
myNextLineback to summary
private int myNextLine
nextLineStartOffsetback to summary
private int nextLineStartOffset
obfuscateEmailback to summary
private final boolean obfuscateEmail
obfuscateEmailRandomback to summary
private final boolean obfuscateEmailRandom
PARAGRAPH_LINEback to summary
public static final AttributablePart PARAGRAPH_LINE
recheckUndefinedReferencesback to summary
private final boolean recheckUndefinedReferences
referenceRepositoryback to summary
private final ReferenceRepository referenceRepository
TIGHT_LIST_ITEMback to summary
public static final AttributablePart TIGHT_LIST_ITEM

Constructor Detail

CoreNodeRendererback to summary
public CoreNodeRenderer(DataHolder options)

Method Detail

getNodeRenderingHandlersback to summary
public Set<NodeRenderingHandler<?>> getNodeRenderingHandlers()

Implements com.vladsch.flexmark.html.renderer.NodeRenderer.getNodeRenderingHandlers.

Returns:Set<NodeRenderingHandler<?>>

Doc from com.vladsch.flexmark.html.renderer.NodeRenderer.getNodeRenderingHandlers.

the mapping of nodes this renderer handles to rendering function

Annotations
@SuppressWarnings:OverlyCoupledMethod
@Override
isSuppressedLinkPrefixback to summary
public static boolean isSuppressedLinkPrefix(CharSequence url, NodeRendererContext context)
outputNextLineBreakSpanback to summary
private void outputNextLineBreakSpan(Node node, HtmlWriter html, boolean outputBreakText)
outputSourceLineSpanback to summary
private void outputSourceLineSpan(Node parentNode, Node startNode, Node endNode, HtmlWriter html)
renderback to summary
pack-priv void render(Document node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(Heading node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(BlockQuote node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(FencedCodeBlock node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(ThematicBreak node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(IndentedCodeBlock node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(CodeBlock node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(BulletList node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(OrderedList node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(BulletListItem node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(OrderedListItem node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(Paragraph node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(SoftLineBreak node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(HardLineBreak node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(Emphasis node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(StrongEmphasis node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(Text node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(TextBase node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(Code node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(HtmlBlock node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(HtmlCommentBlock node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(HtmlInnerBlock node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(HtmlInnerBlockComment node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(HtmlInline node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(HtmlInlineComment node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(Reference node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(HtmlEntity node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(Image node, NodeRendererContext context, HtmlWriter html)
Annotations
@SuppressWarnings:MethodMayBeStatic
renderback to summary
pack-priv void render(ImageRef node, NodeRendererContext context, HtmlWriter html)
renderback to summary
pack-priv void render(LinkRef node, NodeRendererContext context, HtmlWriter html)
renderChildrenSourceLineWrappedback to summary
private void renderChildrenSourceLineWrapped(Node node, BasedSequence nodeChildText, NodeRendererContext context, HtmlWriter html)
renderHtmlBlockback to summary
public static void renderHtmlBlock(HtmlBlockBase node, NodeRendererContext context, HtmlWriter html, boolean suppress, boolean escape, boolean trimSpaces)
renderInlineHtmlback to summary
public static void renderInlineHtml(HtmlInlineBase node, NodeRendererContext context, HtmlWriter html, boolean suppress, boolean escape)
renderLineBreakback to summary
private boolean renderLineBreak(String breakText, String suppressInTag, Node node, NodeRendererContext context, HtmlWriter html)
renderListItemback to summary
private void renderListItem(ListItem node, NodeRendererContext context, HtmlWriter html)
renderLooseParagraphback to summary
private void renderLooseParagraph(Paragraph node, NodeRendererContext context, HtmlWriter html)
renderTextBlockParagraphLinesback to summary
public void renderTextBlockParagraphLines(Paragraph node, NodeRendererContext context, HtmlWriter html, boolean wrapTextInSpan)
com.vladsch.flexmark.html.renderer back to summary

public Class CoreNodeRenderer.Factory

extends Object
implements NodeRendererFactory
Class Inheritance
All Implemented Interfaces
com.vladsch.flexmark.html.renderer.NodeRendererFactory, java.util.function.Function

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public @NotNull NodeRenderer
apply(@NotNull DataHolder
the function argument
options
)

Implements java.util.function.Function.apply.

Applies this function to the given argument.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

Factoryback to summary
public Factory()

Method Detail

applyback to summary
public @NotNull NodeRenderer apply(@NotNull DataHolder options)

Implements java.util.function.Function.apply.

Doc from java.util.function.Function.apply.

Applies this function to the given argument.

Parameters
options:@NotNull DataHolder

the function argument

Returns:@NotNull NodeRenderer

the function result

Annotations
@NotNull
@Override