All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.commonmark.renderer.text.TextContentNodeRendererContext Maven / Gradle / Ivy

Go to download

Core of commonmark-java (implementation of CommonMark for parsing markdown and rendering to HTML)

There is a newer version: 0.17.0
Show newest version
package org.commonmark.renderer.text;

import org.commonmark.node.Node;

public interface TextContentNodeRendererContext {

    /**
     * @return true for stripping new lines and render text as "single line",
     * false for keeping all line breaks.
     */
    boolean stripNewlines();

    /**
     * @return the writer to use
     */
    TextContentWriter getWriter();

    /**
     * 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.
     *
     * @param node the node to render
     */
    void render(Node node);
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy