# Maintain tables from HTML email in when using HTML to Markdown

**URL:** <https://meta.discourse.org/t/maintain-tables-from-html-email-in-when-using-html-to-markdown/64434>\
**Category:** Feature\
**Created:** [June 13, 2017, 4:27pm UTC](https://meta.discourse.org/t/maintain-tables-from-html-email-in-when-using-html-to-markdown/64434 "2017-06-13T16:27:48Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)\
**Post date:** [June 13, 2017, 4:27pm UTC](https://meta.discourse.org/t/maintain-tables-from-html-email-in-when-using-html-to-markdown/64434/1 "2017-06-13T16:27:48Z")

</div>

> [@Email reply includes inline styles with "incoming email prefer html" site setting on](https://meta.discourse.org/t/email-reply-includes-inline-styles-with-incoming-email-prefer-html-site-setting-on/61639/2):
>
> Now that we have a [Html To Markdown converter](https://github.com/discourse/discourse/blob/master/lib/html_to_markdown.rb)

I was trying to advise a user on how they might import a Google Doc into Discourse as a new topic and suggested trying to copy/paste the doc into an email and then email it in. It mostly worked, but there were a few tables in the doc that got mangled in the process.

When an email into Discourse includes an HTML table, that table gets mangled and turned into plaintext on the Discourse side.

I have the `incoming_email_prefer_html` on as well as the “allow html tables” setting.

It’d be cool if tables were just skipped and maintained as HTML in that case. (Or perhaps there’s a table extension we’re planning on enabling once the markdown-it is in the mix?)

---

_[View the full topic](https://meta.discourse.org/t/maintain-tables-from-html-email-in-when-using-html-to-markdown/64434)._
