Interface HtmlNodeConverterContext

    • Method Detail

      • delegateRender

        void delegateRender()
      • getSubContext

        @NotNull
        @NotNull HtmlNodeConverterContext getSubContext()
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Specified by:
        getSubContext in interface NodeContext<org.jsoup.nodes.Node,​HtmlNodeConverterContext>
        Returns:
        a new rendering context with a given appendable for its output
      • getSubContext

        @NotNull
        @NotNull HtmlNodeConverterContext getSubContext​(@Nullable
                                                        @Nullable DataHolder options)
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Specified by:
        getSubContext in interface NodeContext<org.jsoup.nodes.Node,​HtmlNodeConverterContext>
        Parameters:
        options - options to use for the context (only options which do not affect the context construction will be used)
        Returns:
        a new rendering context with a given appendable for its output
      • getSubContext

        @NotNull
        @NotNull HtmlNodeConverterContext getSubContext​(@Nullable
                                                        @Nullable DataHolder options,
                                                        @NotNull
                                                        @NotNull ISequenceBuilder<?,​?> builder)
        Creates a child rendering context that can be used to collect rendered html text. The child context inherits everything but the HtmlRenderer and doNotRenderLinksNesting from the parent.
        Specified by:
        getSubContext in interface NodeContext<org.jsoup.nodes.Node,​HtmlNodeConverterContext>
        Parameters:
        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 offsets
        Returns:
        a new rendering context with a given appendable for its output
      • render

        void render​(@NotNull
                    @NotNull org.jsoup.nodes.Node node)
        Render the specified node and its children using the configured renderers. This should be used to render child nodes; be careful not to pass the node that is being rendered, that would result in an endless loop.
        Parameters:
        node - the node to render
      • renderChildren

        void renderChildren​(@NotNull
                            @NotNull org.jsoup.nodes.Node parent,
                            boolean outputAttributes,
                            @Nullable
                            @Nullable java.lang.Runnable prePopAction)
        Render the children of the node, used by custom renderers
        Parameters:
        parent - node the children of which are to be rendered
        outputAttributes - true if attributes should be output
        prePopAction - runnable to run before popping state
      • getFormattingPhase

        HtmlConverterPhase getFormattingPhase()
        Returns:
        current rendering phase
      • getDocument

        @NotNull
        @NotNull org.jsoup.nodes.Document getDocument()
        Returns:
        the Document node of the current context
      • getForDocument

        @Nullable
        Document getForDocument()
        Returns:
        the Document node of the current context
      • getReferenceUrlToReferenceMap

        @NotNull
        @NotNull java.util.HashMap<java.lang.String,​Reference> getReferenceUrlToReferenceMap()
      • getExternalReferences

        @NotNull
        @NotNull java.util.HashSet<Reference> getExternalReferences()
      • isTrace

        boolean isTrace()
      • setTrace

        void setTrace​(boolean trace)
      • parseMarkdown

        @NotNull
        Node parseMarkdown​(@NotNull
                           @NotNull java.lang.String markdown)
      • getOrCreateReference

        @Nullable
        @Nullable Reference getOrCreateReference​(@NotNull
                                                 @NotNull java.lang.String url,
                                                 @NotNull
                                                 @NotNull java.lang.String text,
                                                 @Nullable
                                                 @Nullable java.lang.String title)
      • resolveLink

        @NotNull
        @NotNull ResolvedLink resolveLink​(@NotNull
                                          @NotNull LinkType linkType,
                                          @NotNull
                                          @NotNull java.lang.CharSequence url,
                                          @Nullable
                                          @Nullable java.lang.Boolean urlEncode)
      • resolveLink

        @NotNull
        @NotNull ResolvedLink resolveLink​(@NotNull
                                          @NotNull LinkType linkType,
                                          @NotNull
                                          @NotNull java.lang.CharSequence url,
                                          @Nullable
                                          @Nullable Attributes attributes,
                                          @Nullable
                                          @Nullable java.lang.Boolean urlEncode)
      • pushState

        void pushState​(@NotNull
                       @NotNull org.jsoup.nodes.Node parent)
      • excludeAttributes

        void excludeAttributes​(java.lang.String... excludes)
      • processAttributes

        void processAttributes​(@NotNull
                               @NotNull org.jsoup.nodes.Node node)
      • outputAttributes

        int outputAttributes​(@NotNull
                             @NotNull LineAppendable out,
                             @NotNull
                             @NotNull java.lang.String initialSep)
      • transferIdToParent

        void transferIdToParent()
      • transferToParentExcept

        void transferToParentExcept​(java.lang.String... excludes)
      • transferToParentOnly

        void transferToParentOnly​(java.lang.String... includes)
      • peek

        @Nullable
        @Nullable org.jsoup.nodes.Node peek()
      • peek

        @Nullable
        @Nullable org.jsoup.nodes.Node peek​(int skip)
      • next

        @Nullable
        @Nullable org.jsoup.nodes.Node next()
      • skip

        void skip()
      • next

        @Nullable
        @Nullable org.jsoup.nodes.Node next​(int skip)
      • skip

        void skip​(int skip)
      • processUnwrapped

        void processUnwrapped​(@NotNull
                              @NotNull org.jsoup.nodes.Node element)
      • processWrapped

        void processWrapped​(@NotNull
                            @NotNull org.jsoup.nodes.Node node,
                            @Nullable
                            @Nullable java.lang.Boolean isBlock,
                            boolean escapeMarkdown)
      • processTextNodes

        void processTextNodes​(@NotNull
                              @NotNull org.jsoup.nodes.Node node,
                              boolean stripIdAttribute)
      • processTextNodes

        void processTextNodes​(@NotNull
                              @NotNull org.jsoup.nodes.Node node,
                              boolean stripIdAttribute,
                              @NotNull
                              @NotNull java.lang.CharSequence wrapText)
      • processTextNodes

        void processTextNodes​(@NotNull
                              @NotNull org.jsoup.nodes.Node node,
                              boolean stripIdAttribute,
                              @Nullable
                              @Nullable java.lang.CharSequence textPrefix,
                              @Nullable
                              @Nullable java.lang.CharSequence textSuffix)
      • wrapTextNodes

        void wrapTextNodes​(@NotNull
                           @NotNull org.jsoup.nodes.Node node,
                           @NotNull
                           @NotNull java.lang.CharSequence wrapText,
                           boolean needSpaceAround)
      • processTextNodes

        @NotNull
        @NotNull java.lang.String processTextNodes​(@NotNull
                                                   @NotNull org.jsoup.nodes.Node node)
      • appendOuterHtml

        void appendOuterHtml​(@NotNull
                             @NotNull org.jsoup.nodes.Node node)
      • isInlineCode

        boolean isInlineCode()
      • setInlineCode

        void setInlineCode​(boolean inlineCode)
      • escapeSpecialChars

        @NotNull
        @NotNull java.lang.String escapeSpecialChars​(@NotNull
                                                     @NotNull java.lang.String text)
      • prepareText

        @NotNull
        @NotNull java.lang.String prepareText​(@NotNull
                                              @NotNull java.lang.String text)
      • prepareText

        @NotNull
        @NotNull java.lang.String prepareText​(@NotNull
                                              @NotNull java.lang.String text,
                                              boolean inCode)
      • inlineCode

        void inlineCode​(@NotNull
                        @NotNull java.lang.Runnable inlineRunnable)
      • processConditional

        void processConditional​(@NotNull
                                @NotNull ExtensionConversion extensionConversion,
                                @NotNull
                                @NotNull org.jsoup.nodes.Node node,
                                @NotNull
                                @NotNull java.lang.Runnable processNode)
      • renderDefault

        void renderDefault​(@NotNull
                           @NotNull org.jsoup.nodes.Node node)