def render(self, parsed, page=False, minify=False):
rendered = []<EOL>for i, p in enumerate(parsed):<EOL><INDENT>if i == <NUM_LIT:0>:<EOL><INDENT>settings = p.get("<STR_LIT>", {})<EOL>self.direction = settings.get("<STR_LIT>", DEFAULT_DIR)<EOL>self.lang = settings.get("<STR_LIT>", DEFAULT_LANG)<EOL><DEDENT>rendered.append(self.render_ents(p["<STR_LIT:text>"], p["<STR_LIT>"], p.get("<STR_LIT:title>")))<EOL><DEDENT>if page:<EOL><INDENT>docs = "<STR_LIT>".join([TPL_FIGURE.format(content=doc) for doc in rendered])<EOL>markup = TPL_PAGE.format(content=docs, lang=self.lang, dir=self.direction)<EOL><DEDENT>else:<EOL><INDENT>markup = "<STR_LIT>".join(rendered)<EOL><DEDENT>if minify:<EOL><INDENT>return minify_html(markup)<EOL><DEDENT>return markup<EOL>
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.