class_docstr: Parse Markdown blocks into an `ElementTree` object.
  
  A wrapper class that stitches the various `BlockProcessors` together,
  looping through them and creating an `ElementTree` object.
docstr: Parse a Markdown document into an `ElementTree`.
  
  Given a list of lines, an `ElementTree` object (not just a parent
  `Element`) is created and the root element is passed to the parser
  as the parent. The `ElementTree` object is returned.
  
  This should only be called on an entire document, not pieces.
  
  Arguments:
      lines: A list of lines (strings).
  
  Returns:
      An element tree.
docstr_tok: ["Parse","a","Markdown","document","into","an","`","ElementTree","`",".","Given","a","list","of","lines",",","an","`","ElementTree","`","object","(","not","just","a","parent","`","Element","`",")","is","created","and","the","root","element","is","passed","to","the","parser","as","the","parent",".","The","`","ElementTree","`","object","is","returned",".","This","should","only","be","called","on","an","entire","document",",","not","pieces",".","Arguments",":","lines",":","A","list","of","lines","(","strings",")",".","Returns",":","An","element","tree","."]
code: def parseDocument(self, lines: Iterable[str]) -> etree.ElementTree:
      """Parse a Markdown document into an `ElementTree`.
  
      Given a list of lines, an `ElementTree` object (not just a parent
      `Element`) is created and the root element is passed to the parser
      as the parent. The `ElementTree` object is returned.
  
      This should only be called on an entire document, not pieces.
  
      Arguments:
          lines: A list of lines (strings).
  
      Returns:
          An element tree.
      """
      # Create an `ElementTree` from the lines
      self.root = etree.Element(self.md.doc_tag)
      self.parseChunk(self.root, "\n".join(lines))
      return etree.ElementTree(self.root)
  
file_path: markdown/markdown/blockparser.py
imports: from __future__ import annotations
  import xml.etree.ElementTree
  from typing import TYPE_CHECKING, Iterable, Any
  from .None import util
label_desc: Use image node_id 2 for calling the BlockParser obj's underlying member method code with example usage: obj.parseDocument(lines) and returns: etree