code: public MDDocument processDocument(String text) {
          TextCursor cursor = new TextCursor(text);
          ArrayList<MDSection> sections = new ArrayList<MDSection>();
          while (handleCodeBlock(cursor, sections)) ;
          return new MDDocument(sections.toArray(new MDSection[sections.size()]));
      }
docs: Parsing markdown document
  
  @param text markdown text
  @return parsed document