def METHOD_NAME(value, escape_html=False):
    """
    Render text as Markdown.
    """
    # Strip HTML tags and render Markdown
    html = md(strip_tags(value), extensions=["fenced_code", "tables"])
    if escape_html:
        html = escape(html)
    return mark_safe(html)