@on_http_error(GitlabMarkdownError)<EOL><INDENT>def markdown(self, text, gfm=False, project=None, **kwargs):<DEDENT>
post_data = {'<STR_LIT:text>': text, '<STR_LIT>': gfm}<EOL>if project is not None:<EOL><INDENT>post_data['<STR_LIT>'] = project<EOL><DEDENT>data = self.http_post('<STR_LIT>', post_data=post_data, **kwargs)<EOL>return data['<STR_LIT:html>']<EOL>
Render an arbitrary Markdown document.

        Args:
            text (str): The markdown text to render
            gfm (bool): Render text using GitLab Flavored Markdown. Default is
                False
            project (str): Full path of a project used a context when `gfm` is
                True
            **kwargs: Extra options to send to the server (e.g. sudo)

        Raises:
            GitlabAuthenticationError: If authentication is not correct
            GitlabMarkdownError: If the server cannot perform the request

        Returns:
            str: The HTML rendering of the markdown text.