What’s missing in most of these markdown editors (including this one), is the ability to copy the formatted document as clean rich text, for pasting into email and other apps.

For example, a simple document with a list gives you this very clean HTML if you “copy code”:

<p>Here is an email with a bunch of lists:</p>
<ul><li>
<p>Item one</p>
</li>
<li>
<p>Item two</p>
<ul><li>
Item three</li>
</ul>
</li>
</ul>

But if you copy the rich text and paste into a contenteditable field, you get this (ugh):

<div><p cid="c1" mdtype="paragraph" style="box-sizing: border-box; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; margin: 30px 0px 0.8em; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; white-space: pre-wrap; text-size-adjust: auto; background-color: rgb(255, 255, 255);"><span class="md-line md-end-block md-focus" cid="c6" mdtype="line" style="box-sizing: border-box; display: block;"><span md-inline="plain" class="md-expand" style="box-sizing: border-box;">Here is an email with a bunch of lists:</span></span></p><ul class="ul-list" cid="c23" mdtype="list" data-mark="-" style="box-sizing: border-box; margin: 0.8em 0px; padding-left: 30px; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; white-space: pre-wrap; text-size-adjust: auto; background-color: rgb(255, 255, 255);"><li cid="c24" mdtype="list_item" style="box-sizing: border-box; margin: 0px; position: relative;"><p cid="c25" mdtype="paragraph" style="box-sizing: border-box; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; margin: 0.5rem 0px; width: inherit; position: relative;"><span class="md-line md-end-block" cid="c26" mdtype="line" style="box-sizing: border-box; display: block;"><span md-inline="plain" style="box-sizing: border-box;">Item one</span></span></p></li><li cid="c33" mdtype="list_item" style="box-sizing: border-box; margin: 0px; position: relative;"><p cid="c32" mdtype="paragraph" style="box-sizing: border-box; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; margin: 0.5rem 0px; width: inherit; position: relative;"><span class="md-line md-end-block" cid="c27" mdtype="line" style="box-sizing: border-box; display: block;"><span md-inline="plain" style="box-sizing: border-box;">Item two</span></span></p><ul class="ul-list" cid="c41" mdtype="list" data-mark="-" style="box-sizing: border-box; margin: 0px; padding-left: 30px;"><li cid="c40" mdtype="list_item" class="" style="box-sizing: border-box; margin: 0px; position: relative;"><p cid="c39" mdtype="paragraph" style="box-sizing: border-box; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; margin: 0.5rem 0px; width: inherit; position: relative;"><span class="md-line md-end-block" cid="c34" mdtype="line" style="box-sizing: border-box; display: block;"><span md-inline="plain" class="" style="box-sizing: border-box;">Item three</span></span></p></li><li cid="c40" mdtype="list_item" class="" style="box-sizing: border-box; margin: 0px; position: relative;"><div><span md-inline="plain" class="" style="box-sizing: border-box;"><br></span></div></li></ul></li></ul><p cid="c120" mdtype="paragraph" class="unholdable" style="box-sizing: border-box; -webkit-margin-before: 1rem; -webkit-margin-after: 1rem; margin: 0.8em 0px; width: inherit; position: relative; color: rgb(51, 51, 51); font-family: &quot;Open Sans&quot;, &quot;Clear Sans&quot;, &quot;Helvetica Neue&quot;, Helvetica, Arial, sans-serif; font-size: 16px; white-space: pre-wrap; text-size-adjust: auto; background-color: rgb(255, 255, 255);"></p></div>