1

While converting markdown to html i am getting this error

def title(request, title):
    global mdValue
    mdValue = util.get_entry(title)
    htmlValue = m.convert(mdValue) # error occurs on this line
    return render(request, "encyclopedia/getpage.html", {
        "title" : htmlValue
    })

I have globally intialized m = Markdown()

You must log in to answer this question.

Browse other questions tagged .