class_docstr: Render Spans as SVGs.
class_docstr_tok: ["Render","Spans","as","SVGs","."]
docstr: Render complete markup.
  
  parsed (list): Dependency parses to render.
  page (bool): Render parses wrapped as full HTML page.
  minify (bool): Minify HTML markup.
  RETURNS (str): Rendered SVG or HTML markup.
docstr_tok: ["Render","complete","markup",".","parsed","(","list",")",":","Dependency","parses","to","render",".","page","(","bool",")",":","Render","parses","wrapped","as","full","HTML","page",".","minify","(","bool",")",":","Minify","HTML","markup",".","RETURNS","(","str",")",":","Rendered","SVG","or","HTML","markup","."]
code: def render(
      self,
      parsed: List[Dict[str, Any]],
      page: bool = False,
      minify: bool = False,
  ) -> str:
      """Render complete markup.
  
      parsed (list): Dependency parses to render.
      page (bool): Render parses wrapped as full HTML page.
      minify (bool): Minify HTML markup.
      RETURNS (str): Rendered SVG or HTML markup.
      """
      rendered = []
      for i, p in enumerate(parsed):
          if i == 0:
              settings = p.get("settings", {})
              self.direction = settings.get("direction", DEFAULT_DIR)
              self.lang = settings.get("lang", DEFAULT_LANG)
          rendered.append(
              self.render_spans(p["tokens"], p["spans"], p.get("title"))
          )
  
      if page:
          docs = "".join(
              [TPL_FIGURE.format(content=doc) for doc in rendered]
          )
          markup = TPL_PAGE.format(
              content=docs, lang=self.lang, dir=self.direction
          )
      else:
          markup = "".join(rendered)
      if minify:
          return minify_html(markup)
      return markup
  
imports: import uuid
  from typing import Any, Dict, List, Optional, Tuple, Union
  from ..errors import Errors
  from ..util import escape_html, minify_html, registry
  from .templates import TPL_DEP_ARCS, TPL_DEP_SVG, TPL_DEP_WORDS, TPL_DEP_WORDS_LEMMA, TPL_ENT, TPL_ENT_RTL, TPL_ENTS, TPL_FIGURE, TPL_KB_LINK, TPL_PAGE, TPL_SPAN, TPL_SPAN_RTL, TPL_SPAN_SLICE, TPL_SPAN_SLICE_RTL, TPL_SPAN_START, TPL_SPAN_START_RTL, TPL_SPANS, TPL_TITLE
label_desc: Use image node_id 2 for calling the SpanRenderer obj's underlying member method code with example usage: obj.render(parsed, page, minify) and returns: markup, minify_html