def render(self, parsed, page=False, minify=False):
<EOL>id_prefix = uuid.uuid4().hex<EOL>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>render_id = "<STR_LIT>".format(id_prefix, i)<EOL>svg = self.render_svg(render_id, p["<STR_LIT>"], p["<STR_LIT>"])<EOL>rendered.append(svg)<EOL><DEDENT>if page:<EOL><INDENT>content = "<STR_LIT>".join([TPL_FIGURE.format(content=svg) for svg in rendered])<EOL>markup = TPL_PAGE.format(<EOL>content=content, lang=self.lang, dir=self.direction<EOL>)<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 SVG or HTML markup.