public interface HtmlNodeConverterContext extends com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>
| Modifier and Type | Method and Description |
|---|---|
void |
appendOuterHtml(org.jsoup.nodes.Node node) |
void |
delegateRender() |
String |
escapeSpecialChars(String text) |
void |
excludeAttributes(String... excludes) |
org.jsoup.nodes.Node |
getCurrentNode() |
org.jsoup.nodes.Document |
getDocument() |
HashSet<com.vladsch.flexmark.ast.Reference> |
getExternalReferences() |
com.vladsch.flexmark.util.ast.Document |
getForDocument() |
HtmlConverterPhase |
getFormattingPhase() |
HtmlConverterOptions |
getHtmlConverterOptions() |
HtmlMarkdownWriter |
getMarkdown() |
com.vladsch.flexmark.util.data.DataHolder |
getOptions()
Get the current rendering context
DataHolder. |
com.vladsch.flexmark.ast.Reference |
getOrCreateReference(String url,
String text,
String title) |
HashMap<String,com.vladsch.flexmark.ast.Reference> |
getReferenceUrlToReferenceMap() |
HtmlConverterState |
getState() |
Stack<HtmlConverterState> |
getStateStack() |
HtmlNodeConverterContext |
getSubContext()
Creates a child rendering context that can be used to collect rendered html text.
|
HtmlNodeConverterContext |
getSubContext(com.vladsch.flexmark.util.data.DataHolder options)
Creates a child rendering context that can be used to collect rendered html text.
|
HtmlNodeConverterContext |
getSubContext(com.vladsch.flexmark.util.data.DataHolder options,
@NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,?> builder)
Creates a child rendering context that can be used to collect rendered html text.
|
void |
inlineCode(Runnable inlineRunnable) |
boolean |
isInlineCode() |
boolean |
isTrace() |
org.jsoup.nodes.Node |
next() |
org.jsoup.nodes.Node |
next(int skip) |
int |
outputAttributes(com.vladsch.flexmark.util.sequence.LineAppendable out,
String initialSep) |
com.vladsch.flexmark.util.ast.Node |
parseMarkdown(String markdown) |
org.jsoup.nodes.Node |
peek() |
org.jsoup.nodes.Node |
peek(int skip) |
void |
popState(com.vladsch.flexmark.util.sequence.LineAppendable out) |
String |
prepareText(String text) |
String |
prepareText(String text,
boolean inCode) |
void |
processAttributes(org.jsoup.nodes.Node node) |
void |
processConditional(ExtensionConversion extensionConversion,
org.jsoup.nodes.Node node,
Runnable processNode) |
String |
processTextNodes(org.jsoup.nodes.Node node) |
void |
processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute) |
void |
processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute,
CharSequence wrapText) |
void |
processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute,
CharSequence textPrefix,
CharSequence textSuffix) |
void |
processUnwrapped(org.jsoup.nodes.Node element) |
void |
processWrapped(org.jsoup.nodes.Node node,
Boolean isBlock,
boolean escapeMarkdown) |
void |
pushState(org.jsoup.nodes.Node parent) |
void |
render(org.jsoup.nodes.Node node)
Render the specified node and its children using the configured renderers.
|
void |
renderChildren(org.jsoup.nodes.Node parent,
boolean outputAttributes,
Runnable prePopAction)
Render the children of the node, used by custom renderers
|
void |
renderDefault(org.jsoup.nodes.Node node) |
com.vladsch.flexmark.html.renderer.ResolvedLink |
resolveLink(com.vladsch.flexmark.html.renderer.LinkType linkType,
CharSequence url,
com.vladsch.flexmark.util.html.Attributes attributes,
Boolean urlEncode) |
com.vladsch.flexmark.html.renderer.ResolvedLink |
resolveLink(com.vladsch.flexmark.html.renderer.LinkType linkType,
CharSequence url,
Boolean urlEncode) |
void |
setInlineCode(boolean inlineCode) |
void |
setTrace(boolean trace) |
void |
skip() |
void |
skip(int skip) |
void |
transferIdToParent() |
void |
transferToParentExcept(String... excludes) |
void |
transferToParentOnly(String... includes) |
void |
wrapTextNodes(org.jsoup.nodes.Node node,
CharSequence wrapText,
boolean needSpaceAround) |
HtmlMarkdownWriter getMarkdown()
LineAppendable writer to usevoid delegateRender()
HtmlNodeConverterContext getSubContext()
getSubContext in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>HtmlNodeConverterContext getSubContext(com.vladsch.flexmark.util.data.DataHolder options)
getSubContext in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>options - options to use for the context (only options which do not affect the context construction will be used)HtmlNodeConverterContext getSubContext(com.vladsch.flexmark.util.data.DataHolder options, @NotNull @NotNull com.vladsch.flexmark.util.sequence.builder.ISequenceBuilder<?,?> builder)
getSubContext in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>options - options to use for the context (only options which do not affect the context construction will be used)builder - sequence builder to user for appended text for tracking original base offsetsvoid render(org.jsoup.nodes.Node node)
node - the node to rendervoid renderChildren(org.jsoup.nodes.Node parent,
boolean outputAttributes,
Runnable prePopAction)
parent - node the children of which are to be renderedoutputAttributes - true if attributes should be outputprePopAction - runnable to run before popping stateHtmlConverterPhase getFormattingPhase()
com.vladsch.flexmark.util.data.DataHolder getOptions()
DataHolder. These are the options passed or set on the FlexmarkHtmlConverter.builder() or passed to FlexmarkHtmlConverter.builder(DataHolder).
To get the document options you should use getDocument() as the data holder.getOptions in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>DataHolderHtmlConverterOptions getHtmlConverterOptions()
HtmlConverterOptions for the context.org.jsoup.nodes.Document getDocument()
Document node of the current contextcom.vladsch.flexmark.util.ast.Document getForDocument()
Document node of the current contextHtmlConverterState getState()
HashMap<String,com.vladsch.flexmark.ast.Reference> getReferenceUrlToReferenceMap()
HashSet<com.vladsch.flexmark.ast.Reference> getExternalReferences()
boolean isTrace()
Stack<HtmlConverterState> getStateStack()
void setTrace(boolean trace)
com.vladsch.flexmark.util.ast.Node parseMarkdown(String markdown)
com.vladsch.flexmark.ast.Reference getOrCreateReference(String url, String text, String title)
com.vladsch.flexmark.html.renderer.ResolvedLink resolveLink(com.vladsch.flexmark.html.renderer.LinkType linkType,
CharSequence url,
Boolean urlEncode)
com.vladsch.flexmark.html.renderer.ResolvedLink resolveLink(com.vladsch.flexmark.html.renderer.LinkType linkType,
CharSequence url,
com.vladsch.flexmark.util.html.Attributes attributes,
Boolean urlEncode)
org.jsoup.nodes.Node getCurrentNode()
getCurrentNode in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>void pushState(org.jsoup.nodes.Node parent)
void popState(com.vladsch.flexmark.util.sequence.LineAppendable out)
void excludeAttributes(String... excludes)
void processAttributes(org.jsoup.nodes.Node node)
int outputAttributes(com.vladsch.flexmark.util.sequence.LineAppendable out,
String initialSep)
void transferIdToParent()
void transferToParentExcept(String... excludes)
void transferToParentOnly(String... includes)
org.jsoup.nodes.Node peek()
org.jsoup.nodes.Node peek(int skip)
org.jsoup.nodes.Node next()
void skip()
org.jsoup.nodes.Node next(int skip)
void skip(int skip)
void processUnwrapped(org.jsoup.nodes.Node element)
void processWrapped(org.jsoup.nodes.Node node,
Boolean isBlock,
boolean escapeMarkdown)
void processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute)
void processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute,
CharSequence wrapText)
void processTextNodes(org.jsoup.nodes.Node node,
boolean stripIdAttribute,
CharSequence textPrefix,
CharSequence textSuffix)
void wrapTextNodes(org.jsoup.nodes.Node node,
CharSequence wrapText,
boolean needSpaceAround)
String processTextNodes(org.jsoup.nodes.Node node)
void appendOuterHtml(org.jsoup.nodes.Node node)
boolean isInlineCode()
void setInlineCode(boolean inlineCode)
void inlineCode(Runnable inlineRunnable)
void processConditional(ExtensionConversion extensionConversion, org.jsoup.nodes.Node node, Runnable processNode)
void renderDefault(org.jsoup.nodes.Node node)
Copyright © 2020. All rights reserved.