Fenced Code Blocks Missing in HTML Export

Joshua Wright's Avatar

Joshua Wright

15 May, 2018 07:22 PM

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:


I export to HTML by clicking File | Export As | Save HTML then I choose Include style in output (GitHub), Include Syntax Highlighting JavaScript and Embed local images for standalone HTML before naming and saving the file.

Any thoughts on reverting to former functionality? Can I download the older version to replace the recently broken feature?



  1. Support Staff 1 Posted by Brett on 15 May, 2018 08:32 PM

    Brett's Avatar

    This was broken in the 2.5.11 update, but should be fixed in 2.5.13. If
    you're certain you're running the latest version, please attach a sample
    file so I can verify what's going on.


  2. 2 Posted by Joshua Wright on 15 May, 2018 08:46 PM

    Joshua Wright's Avatar

    Clicking Marked 2 | About Marked indicates that I am using version 2.5.13 (946). The Info.plist file also indicates as much:

    $ /usr/libexec/PlistBuddy -c Print /Applications/Marked\ 2.app/Contents/Info.plist | grep -i VersionString
        CFBundleShortVersionString = 2.5.13

    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.

    Thanks for always responding quickly to these problems!


  3. 3 Posted by Joshua Wright on 30 May, 2018 03:10 PM

    Joshua Wright's Avatar

    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.

    Thank you.


  4. Support Staff 4 Posted by Brett on 30 May, 2018 03:52 PM

    Brett's Avatar

    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.

    If you want to revert until then: https://updates.marked2app.com/Marked2.5.10230.zip

  5. Support Staff 5 Posted by Brett on 30 May, 2018 04:18 PM

    Brett's Avatar

    Ok, I believe it's officially fixed for all export options now. I'll begin releasing the new build today.


  6. 6 Posted by Joshua Wright on 01 Jun, 2018 11:41 AM

    Joshua Wright's Avatar

    Sadly, this issue persists. I'm saving the markdown file with the options specified in the screenshot.

    $ cat bug.md
    # cd /root/sec617/fuzz/

    $ grep -A8 <body bug.html

    <!--MKCODEBLOCK-0--> <!-- ##END MARKED WRAPPER## -->

    $ /usr/libexec/PlistBuddy -c Print /Applications/Marked\ 2.app/Contents/Info.plist | grep -i VersionString CFBundleShortVersionString = 2.5.17

  7. Support Staff 7 Posted by Brett on 01 Jun, 2018 11:45 AM

    Brett's Avatar

    Which processor are you using (MMD or Discount)? Any custom processor


  8. Support Staff 8 Posted by Brett on 01 Jun, 2018 11:50 AM

    Brett's Avatar

    Found it. Only happening with MMD and no custom processor. It doesn't
    make any sense, but I'm looking into it now.


  9. Support Staff 9 Posted by Brett on 01 Jun, 2018 12:03 PM

    Brett's Avatar

    Ok, while I was able to replicate it with the published version of
    2.5.17, re-exporting without changing any code seems to have fixed it on
    my end. Here's a new build, could you test and let me know?



  10. 10 Posted by Joshua Wright on 01 Jun, 2018 12:07 PM

    Joshua Wright's Avatar

    Looks good now! Thank you for squashing this!


  11. Support Staff 11 Posted by Brett on 01 Jun, 2018 12:10 PM

    Brett's Avatar

    That's so weird. I'll get a new release out with the official fix soon,
    but feel free to continue using that build for now.


Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:


Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts


? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac