aaronsw / html2text

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

Tables should be passed through instead of being stripped out #55

Open fmarier opened 11 years ago

fmarier commented 11 years ago

In addition, links inside tables need to be HTML otherwise they will not be recognized as links.

aaronsw commented 11 years ago

Can we make this an option, default off? I don't think most users expect to get big chunks of HTML in their output.

fmarier commented 11 years ago

Sure, if you want to turn that into an option, that's not a bad idea. I think you're right that people don't expect lots of HTML, but at the same time, stripping out the tables and just outputting broken formatting is not ideal either.

So, personally I'm not sure which one should be the default, but in my use case, I certainly didn't want to lose my tables after converting from HTML to Markdown.

mcepl commented 10 years ago

Wouldn't it be more useful to convert to Markdown tables? Issue #50 seems to be much more interesting than this.