Class TextContentWriter

java.lang.Object
org.commonmark.renderer.text.TextContentWriter

public class TextContentWriter extends Object
  • Constructor Details

  • Method Details

    • whitespace

      public void whitespace()
    • colon

      public void colon()
    • line

      public void line()
    • block

      public void block()
    • resetBlock

      public void resetBlock()
    • writeStripped

      public void writeStripped(String s)
    • write

      public void write(String s)
    • write

      public void write(char c)
    • pushTight

      public void pushTight(boolean tight)
      Change whether blocks are tight or loose. Loose is the default where blocks are separated by a blank line. Tight is where blocks are not separated by a blank line. Tight blocks are used in lists, if there are no blank lines within the list.

      Note that changing this does not affect block separators that have already been enqueued with block(), only future ones.

    • popTight

      public void popTight()
      Remove the last "tight" setting from the top of the stack.