def METHOD_NAME(self, md):
    r"""Converts Markdown to HTML.
    Parameters
    ----------
    md : str
        A Markdown  string.
    Returns
    -------
    str
        A Markdown  string.
    """
    md = self.highlight(md)
    if markdown is None:
        return u'<pre>%s</pre>' % md
    html = markdown.markdown(md, extensions=self.ext, errors=u'ignore') \
        + self.css + self.footer
    if html.startswith(u'<p>title:'):
        title, body = tuple(html.split(u'\n', 1))
        html = u'<h1>%s</h1>\n\n%s' % (title[9:-4], body)
    return html