Interface TextContentNodeRendererContext

All Known Implementing Classes:
TextContentRenderer.RendererContext

public interface TextContentNodeRendererContext
  • Method Details

    • lineBreakRendering

      LineBreakRendering lineBreakRendering()
      Controls how line breaks should be rendered, see LineBreakRendering.
    • stripNewlines

      @Deprecated boolean stripNewlines()
      Deprecated.
      Returns:
      true for stripping new lines and render text as "single line", false for keeping all line breaks.
    • getWriter

      TextContentWriter getWriter()
      Returns:
      the writer to use
    • render

      void render(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