WordPress Markdown Code Blocks Break for Certain Symbols

  • Unknown's avatar

    < and > symbols, possibly others, are double-encoded when attempting to use Markdown. You can see this in my current blog post: http://blog.falafel.com/introducing-type-safe-enum-pattern/ (look at the very last code block).

    The “>” character is converted to > and then is converted again to > , which causes “=>” to render as garbage.

    I’ve tried several standard Markdown formats for code blocks, including indenting, the ~~~~ format, and the ` format. I even tried manually wrapping the code in <pre> and <code> tags, but everything resulted in the same incorrect behavior. I also tried manually encoding the symbol myself, but it still results in the double-encode bug.

    The blog I need help with is: (visible only to logged in users)

  • Unknown's avatar

    Hi Scott,

    It looks to me like your blog is hosted with wpengine.com is that right?
    These forums are for WordPress.com sites only. If I’m right you would need to contact wpengine.com for support. I’m sure they will be able to help you get it resolved.

  • The topic ‘WordPress Markdown Code Blocks Break for Certain Symbols’ is closed to new replies.