Class Doc

java.lang.Object
com.teamten.markdown.Doc

public class Doc extends Object
Describes a whole document, namely the header and the blocks.
  • Constructor Details

    • Doc

      public Doc()
  • Method Details

    • addBlock

      public void addBlock(Block block)
      Add a block (paragraph) to this document.
    • getBlocks

      public List<Block> getBlocks()
      Return an iterable of all the blocks in this document.
    • addMetadata

      public void addMetadata(String key, String value)
      Add a key/value pair to the document's metadata.
    • getMetadata

      public Iterable<Map.Entry<String,String>> getMetadata()
      Return an unordered iterable over the document's metadata.