aaronsw / html2text

Convert HTML to Markdown-formatted text.
http://www.aaronsw.com/2002/html2text/
GNU General Public License v3.0
2.61k stars 412 forks source link

Use from python #20

Closed jschrewe closed 12 years ago

jschrewe commented 12 years ago

I'm not sure if this is really an issue but if I try to use html2text from a python program it fails with Caught NameError while rendering: global name 'options' is not defined.

What I'm trying to do is:

import html2text

def html2markdown(html):
    return html2text.html2text(html)

Is this even possible?

aaronsw commented 12 years ago

Sorry about that -- looks like some changes I pulled yesterday broke imports. It should be fixed in the latest commit.

aaronsw commented 12 years ago

Fixed in 76a353fcd0.