public interface HtmlNodeConverterContext extends com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>
| Modifier and Type | Method and Description |
|---|---|
void |
appendOuterHtml(@NotNull org.jsoup.nodes.Node node) |
void |
delegateRender() |
@NotNull String |
escapeSpecialChars(@NotNull String text) |
void |
excludeAttributes(String... excludes) |
@Nullable org.jsoup.nodes.Node |
getCurrentNode() |
@NotNull org.jsoup.nodes.Document |
getDocument() |
@NotNull HashSet<com.vladsch.flexmark.ast.Reference> |
getExternalReferences() |
com.vladsch.flexmark.util.ast.Document |
getForDocument() |
HtmlConverterPhase |
getFormattingPhase() |
@NotNull HtmlConverterOptions |
getHtmlConverterOptions() |
HtmlMarkdownWriter |
getMarkdown() |
@NotNull com.vladsch.flexmark.util.data.DataHolder |
getOptions()
Get the current rendering context
DataHolder. |
@Nullable com.vladsch.flexmark.ast.Reference |
getOrCreateReference(@NotNull String url,
@NotNull String text,
@Nullable String title) |
@NotNull HashMap<String,com.vladsch.flexmark.ast.Reference> |
getReferenceUrlToReferenceMap() |
@Nullable HtmlConverterState |
getState() |
@NotNull Stack<HtmlConverterState> |
getStateStack() |
@NotNull HtmlNodeConverterContext |
getSubContext()
Creates a child rendering context that can be used to collect rendered html text.
|
@NotNull HtmlNodeConverterContext |
getSubContext(@Nullable com.vladsch.flexmark.util.data.DataHolder options)
Creates a child rendering context that can be used to collect rendered html text.
|
@NotNull HtmlNodeConverterContext |
getSubContext(@Nullable 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(@NotNull Runnable inlineRunnable) |
boolean |
isInlineCode() |
boolean |
isTrace() |
@Nullable org.jsoup.nodes.Node |
next() |
@Nullable org.jsoup.nodes.Node |
next(int skip) |
int |
outputAttributes(@NotNull com.vladsch.flexmark.util.sequence.LineAppendable out,
@NotNull String initialSep) |
com.vladsch.flexmark.util.ast.Node |
parseMarkdown(@NotNull String markdown) |
@Nullable org.jsoup.nodes.Node |
peek() |
@Nullable org.jsoup.nodes.Node |
peek(int skip) |
void |
popState(@Nullable com.vladsch.flexmark.util.sequence.LineAppendable out) |
@NotNull String |
prepareText(@NotNull String text) |
@NotNull String |
prepareText(@NotNull String text,
boolean inCode) |
void |
processAttributes(@NotNull org.jsoup.nodes.Node node) |
void |
processConditional(@NotNull ExtensionConversion extensionConversion,
@NotNull org.jsoup.nodes.Node node,
@NotNull Runnable processNode) |
@NotNull String |
processTextNodes(@NotNull org.jsoup.nodes.Node node) |
void |
processTextNodes(@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute) |
void |
processTextNodes(@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute,
@NotNull CharSequence wrapText) |
void |
processTextNodes(@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute,
@Nullable CharSequence textPrefix,
@Nullable CharSequence textSuffix) |
void |
processUnwrapped(@NotNull org.jsoup.nodes.Node element) |
void |
processWrapped(@NotNull org.jsoup.nodes.Node node,
@Nullable Boolean isBlock,
boolean escapeMarkdown) |
void |
pushState(@NotNull org.jsoup.nodes.Node parent) |
void |
render(@NotNull org.jsoup.nodes.Node node)
Render the specified node and its children using the configured renderers.
|
void |
renderChildren(@NotNull org.jsoup.nodes.Node parent,
boolean outputAttributes,
@Nullable Runnable prePopAction)
Render the children of the node, used by custom renderers
|
void |
renderDefault(@NotNull org.jsoup.nodes.Node node) |
@NotNull com.vladsch.flexmark.html.renderer.ResolvedLink |
resolveLink(@NotNull com.vladsch.flexmark.html.renderer.LinkType linkType,
@NotNull CharSequence url,
@Nullable com.vladsch.flexmark.util.html.Attributes attributes,
@Nullable Boolean urlEncode) |
@NotNull com.vladsch.flexmark.html.renderer.ResolvedLink |
resolveLink(@NotNull com.vladsch.flexmark.html.renderer.LinkType linkType,
@NotNull CharSequence url,
@Nullable 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(@NotNull org.jsoup.nodes.Node node,
@NotNull CharSequence wrapText,
boolean needSpaceAround) |
HtmlMarkdownWriter getMarkdown()
LineAppendable writer to usevoid delegateRender()
@NotNull @NotNull HtmlNodeConverterContext getSubContext()
getSubContext in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>@NotNull @NotNull HtmlNodeConverterContext getSubContext(@Nullable @Nullable 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)@NotNull @NotNull HtmlNodeConverterContext getSubContext(@Nullable @Nullable 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(@NotNull
@NotNull org.jsoup.nodes.Node node)
node - the node to rendervoid renderChildren(@NotNull
@NotNull org.jsoup.nodes.Node parent,
boolean outputAttributes,
@Nullable
@Nullable 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()
@NotNull @NotNull 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>DataHolder@NotNull @NotNull HtmlConverterOptions getHtmlConverterOptions()
HtmlConverterOptions for the context.@NotNull @NotNull org.jsoup.nodes.Document getDocument()
Document node of the current context@Nullable com.vladsch.flexmark.util.ast.Document getForDocument()
Document node of the current context@Nullable @Nullable HtmlConverterState getState()
@NotNull @NotNull HashMap<String,com.vladsch.flexmark.ast.Reference> getReferenceUrlToReferenceMap()
@NotNull @NotNull HashSet<com.vladsch.flexmark.ast.Reference> getExternalReferences()
boolean isTrace()
@NotNull @NotNull Stack<HtmlConverterState> getStateStack()
void setTrace(boolean trace)
@NotNull
com.vladsch.flexmark.util.ast.Node parseMarkdown(@NotNull
@NotNull String markdown)
@Nullable
@Nullable com.vladsch.flexmark.ast.Reference getOrCreateReference(@NotNull
@NotNull String url,
@NotNull
@NotNull String text,
@Nullable
@Nullable String title)
@NotNull
@NotNull com.vladsch.flexmark.html.renderer.ResolvedLink resolveLink(@NotNull
@NotNull com.vladsch.flexmark.html.renderer.LinkType linkType,
@NotNull
@NotNull CharSequence url,
@Nullable
@Nullable Boolean urlEncode)
@NotNull
@NotNull com.vladsch.flexmark.html.renderer.ResolvedLink resolveLink(@NotNull
@NotNull com.vladsch.flexmark.html.renderer.LinkType linkType,
@NotNull
@NotNull CharSequence url,
@Nullable
@Nullable com.vladsch.flexmark.util.html.Attributes attributes,
@Nullable
@Nullable Boolean urlEncode)
@Nullable @Nullable org.jsoup.nodes.Node getCurrentNode()
getCurrentNode in interface com.vladsch.flexmark.util.format.NodeContext<org.jsoup.nodes.Node,HtmlNodeConverterContext>void pushState(@NotNull
@NotNull org.jsoup.nodes.Node parent)
void popState(@Nullable
@Nullable com.vladsch.flexmark.util.sequence.LineAppendable out)
void excludeAttributes(String... excludes)
void processAttributes(@NotNull
@NotNull org.jsoup.nodes.Node node)
int outputAttributes(@NotNull
@NotNull com.vladsch.flexmark.util.sequence.LineAppendable out,
@NotNull
@NotNull String initialSep)
void transferIdToParent()
void transferToParentExcept(String... excludes)
void transferToParentOnly(String... includes)
@Nullable @Nullable org.jsoup.nodes.Node peek()
@Nullable @Nullable org.jsoup.nodes.Node peek(int skip)
@Nullable @Nullable org.jsoup.nodes.Node next()
void skip()
@Nullable @Nullable org.jsoup.nodes.Node next(int skip)
void skip(int skip)
void processUnwrapped(@NotNull
@NotNull org.jsoup.nodes.Node element)
void processWrapped(@NotNull
@NotNull org.jsoup.nodes.Node node,
@Nullable
@Nullable Boolean isBlock,
boolean escapeMarkdown)
void processTextNodes(@NotNull
@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute)
void processTextNodes(@NotNull
@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute,
@NotNull
@NotNull CharSequence wrapText)
void processTextNodes(@NotNull
@NotNull org.jsoup.nodes.Node node,
boolean stripIdAttribute,
@Nullable
@Nullable CharSequence textPrefix,
@Nullable
@Nullable CharSequence textSuffix)
void wrapTextNodes(@NotNull
@NotNull org.jsoup.nodes.Node node,
@NotNull
@NotNull CharSequence wrapText,
boolean needSpaceAround)
@NotNull @NotNull String processTextNodes(@NotNull @NotNull org.jsoup.nodes.Node node)
void appendOuterHtml(@NotNull
@NotNull org.jsoup.nodes.Node node)
boolean isInlineCode()
void setInlineCode(boolean inlineCode)
void inlineCode(@NotNull
@NotNull Runnable inlineRunnable)
void processConditional(@NotNull
@NotNull ExtensionConversion extensionConversion,
@NotNull
@NotNull org.jsoup.nodes.Node node,
@NotNull
@NotNull Runnable processNode)
void renderDefault(@NotNull
@NotNull org.jsoup.nodes.Node node)
Copyright © 2020. All rights reserved.