tag:support.markedapp.com,2011-09-11:/discussions/problems/146892-fenced-code-blocks-missing-in-html-exportMarked: Discussion 2018-06-01T12:10:41Ztag:support.markedapp.com,2011-09-11:Comment/452879372018-05-15T19:22:24Z2018-05-15T19:22:25ZFenced Code Blocks Missing in HTML Export<div><p>I recently upgraded to to Marked 2 2.5.13 (946) from 2.5.10 (I think, maybe .11). Before upgrading, I could export a fenced code block to HTML and the content would remain. Now when I export to HTML, my fenced code block is replaced with this:</p>
<pre>
<code><!--MKCODEBLOCK-40--></code>
</pre>
<p>I export to HTML by clicking <strong>File | Export As | Save HTML</strong> then I choose <em>Include style in output</em> (GitHub), <em>Include Syntax Highlighting JavaScript</em> and <em>Embed local images for standalone HTML</em> before naming and saving the file.</p>
<p>Any thoughts on reverting to former functionality? Can I download the older version to replace the recently broken feature?</p>
<p>Thanks,</p>
<p>-Josh</p></div>Joshua Wrighttag:support.markedapp.com,2011-09-11:Comment/452879372018-05-15T20:32:12Z2018-05-15T20:32:12ZFenced Code Blocks Missing in HTML Export<div><p>This was broken in the 2.5.11 update, but should be fixed in 2.5.13. If<br>
you're certain you're running the latest version, please attach a sample<br>
file so I can verify what's going on.</p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-05-15T20:46:32Z2018-05-15T20:46:32ZFenced Code Blocks Missing in HTML Export<div><p>Clicking <strong>Marked 2 | About Marked</strong> indicates that I am using version 2.5.13 (946). The <code>Info.plist</code> file also indicates as much:</p>
<pre>
<code>$ /usr/libexec/PlistBuddy -c Print /Applications/Marked\ 2.app/Contents/Info.plist | grep -i VersionString
CFBundleShortVersionString = 2.5.13</code>
</pre>
<p>A markdown file containing nothing but a 1-line fenced code block saved as HTML reproduces this error. I've attached a sample md file and a screenshot.</p>
<p>Thanks for always responding quickly to these problems!</p>
<p>-Josh</p></div>Joshua Wrighttag:support.markedapp.com,2011-09-11:Comment/452879372018-05-30T15:10:35Z2018-05-30T15:10:36ZFenced Code Blocks Missing in HTML Export<div><p>Any update on this issue? I just confirmed the issue is not addressed in the 2.5.16 update. I will gladly go back to 2.5.10 if you can provide a download link for that version of Marked2.</p>
<p>Thank you.</p>
<p>-Josh</p></div>Joshua Wrighttag:support.markedapp.com,2011-09-11:Comment/452879372018-05-30T15:52:02Z2018-05-30T15:52:02ZFenced Code Blocks Missing in HTML Export<div><p>Argh, I fixed it when testing with a custom processor enabled but somehow failed to test it without. I'll have this fixed and an update out in the next couple of days.</p>
<p>If you want to revert until then: <a href="https://updates.marked2app.com/Marked2.5.10230.zip">https://updates.marked2app.com/Marked2.5.10230.zip</a></p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-05-30T16:18:10Z2018-05-30T16:18:10ZFenced Code Blocks Missing in HTML Export<div><p>Ok, I believe it's officially fixed for all export options now. I'll begin releasing the new build today.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T11:41:47Z2018-06-01T11:41:48ZFenced Code Blocks Missing in HTML Export<div><p>Sadly, this issue persists. I'm saving the markdown file with the options specified in the screenshot.</p>
<pre>
<code>$ cat bug.md
```text
# cd /root/sec617/fuzz/</code>
</pre>
<p>$ grep -A8 <body bug.html</p>
<br>
<div><!--MKCODEBLOCK-0-->
<!-- ##END MARKED WRAPPER## -->
<pre>
<code></div></code>
</pre>
<p>$ /usr/libexec/PlistBuddy -c Print /Applications/Marked\ 2.app/Contents/Info.plist | grep -i VersionString CFBundleShortVersionString = 2.5.17</p>
<pre>
</pre></div></div>Joshua Wrighttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T11:45:30Z2018-06-01T11:45:30ZFenced Code Blocks Missing in HTML Export<div><p>Which processor are you using (MMD or Discount)? Any custom processor<br>
enabled?</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T11:50:25Z2018-06-01T11:50:25ZFenced Code Blocks Missing in HTML Export<div><p>Found it. Only happening with MMD and no custom processor. It doesn't<br>
make any sense, but I'm looking into it now.</p>
<p>-Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T12:03:50Z2018-06-01T12:03:50ZFenced Code Blocks Missing in HTML Export<div><p>Ok, while I was able to replicate it with the published version of<br>
2.5.17, re-exporting without changing any code seems to have fixed it on<br>
my end. Here's a new build, could you test and let me know?</p>
<p><a href="http://asssets.markedapp.com.s3.amazonaws.com/Marked%202.5.17951.zip">http://asssets.markedapp.com.s3.amazonaws.com/Marked%202.5.17951.zip</a></p>
<p>Thanks,<br>
Brett</p></div>Bretttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T12:07:12Z2018-06-01T12:07:13ZFenced Code Blocks Missing in HTML Export<div><p>Looks good now! Thank you for squashing this!</p>
<p>-Josh</p></div>Joshua Wrighttag:support.markedapp.com,2011-09-11:Comment/452879372018-06-01T12:10:41Z2018-06-01T12:10:41ZFenced Code Blocks Missing in HTML Export<div><p>That's so weird. I'll get a new release out with the official fix soon,<br>
but feel free to continue using that build for now.</p>
<p>-Brett</p></div>Brett