tag:support.markedapp.com,2011-09-11:/discussions/problems/153320-copy-rich-text-command-omits-fenced-code-blocksMarked: Discussion 2019-06-04T17:50:58Ztag:support.markedapp.com,2011-09-11:Comment/473165482019-05-31T17:30:04Z2019-05-31T17:30:04Z"Copy Rich Text" command omits fenced code blocks<div><p>Using the attached sample document, use the <code>Edit ▸ Copy Rich Text</code> command and then paste into TextEdit. All of the fenced block quote entries will be lost. It looks like code spans and indented code blocks work fine.</p></div>ioatag:support.markedapp.com,2011-09-11:Comment/473165482019-06-02T12:32:58Z2019-06-02T12:32:58Z"Copy Rich Text" command omits fenced code blocks<div><p>For accurate testing, which themes have you tested with and do you have syntax highlighting on or off?</p>
<ul>
<li>Brett</li>
</ul></div>Bretttag:support.markedapp.com,2011-09-11:Comment/473165482019-06-03T16:49:53Z2019-06-03T16:49:53Z"Copy Rich Text" command omits fenced code blocks<div><p>I tested with default settings, so it looks like that would be "Swiss",<br>
and yes to syntax highlighting, using the github.css file.</p>
<p>-- Ioa</p></div>ioatag:support.markedapp.com,2011-09-11:Comment/473165482019-06-04T17:27:36Z2019-06-04T17:27:36Z"Copy Rich Text" command omits fenced code blocks<div><p>Thanks for reporting this. I've been doing some testing and there's some serious weirdness happening.</p>
<p>Regardless of the Syntax Highlighting setting, sometimes it copies the code blocks, sometimes it doesn't. I thought at first that when I removed the json specifier from the second code block it fixed it, but it soon returned to not copying 2nd and 3rd blocks. This is going to take some figuring out.</p>
<p>Marked's Copy RTF function is essentially the same as doing a ⌘A, ⌘C to copy the web contents. Doing that, though, seems to consistently work with the code blocks (and is a good workaround for you while I track this down). I just need to figure out why those code blocks would be ignored by the copy command...</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/473165482019-06-04T17:50:56Z2019-06-04T17:50:56Z"Copy Rich Text" command omits fenced code blocks<div><p>Ah, I found it. Stupid mistake on my part, fixed for the next update (to be released soon).</p></div>Brett