import markdown

def render_html(fp, **kwargs):
    return(markdown.markdown(fp.read()))
import markdown
from mfr import RenderResult

def render_html(fp, **kwargs):
    return RenderResult(markdown.markdown(fp.read()))

Fix md rendering