Skip to content

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

Open
fmarier wants to merge 1 commit into
aaronsw:masterfrom
fmarier:table_passthrough
Open

Tables should be passed through instead of being stripped out#55
fmarier wants to merge 1 commit into
aaronsw:masterfrom
fmarier:table_passthrough

Conversation

@fmarier

@fmarier fmarier commented Nov 5, 2012

Copy link
Copy Markdown
Contributor

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

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

aaronsw commented Nov 5, 2012

Copy link
Copy Markdown
Owner

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

fmarier commented Nov 5, 2012

Copy link
Copy Markdown
Contributor Author

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

mcepl commented Nov 6, 2013

Copy link
Copy Markdown

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

pombredanne pushed a commit to pombredanne/html2text that referenced this pull request Oct 10, 2015
<a> tags with no text or <img> tags no longer discarded.

Thanks @mgontav
moregatest pushed a commit to moregatest/html2text that referenced this pull request Dec 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants