code: def render(self, parsed, page=False, minify=False):
          
          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_ents(p["text"], p["ents"], 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
docs: Render complete markup.
  
          parsed (list): Dependency parses to render.
          page (bool): Render parses wrapped as full HTML page.
          minify (bool): Minify HTML markup.
          RETURNS (unicode): Rendered HTML markup.