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

ignore_emphasis header #35

Open adroullier opened 12 years ago

adroullier commented 12 years ago

Hi, is there a reason not to use "ignore_emphasis" for header tags (h1, h2, h3, ...), too? Or is this just not implemented, yet?

h = html2text.HTML2Text() h.ignore_emphasis=True h.handle("

title

") u'# title\n\n'

Arndt

aaronsw commented 12 years ago

That's not really emphasis...

GingerNg commented 5 years ago

Hi, How to ignore "#" when handling the html with h1,h2,h3....... Is there configuration?