• Resolved iarsov

    (@iarsov)


    Hello,

    Today after I’ve published a post which includes syntaxhighlighter parts (for code posting) it was stripped (missing) in the email notifications.

    Am I missing some configuration or this is not possible ?
    I would expect at least the text (code) should show up as plain text.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Could you let me know what plugin you use to insert code snippets into your posts, and what shortcode that plugin uses?

    Could you also post a link to one of the posts where you experienced issues so I can take a closer look and see about getting this fixed?
    If you want your site URL to remain private, you can also contact us via this contact form:
    http://jetpack.com/contact-support/

    Thanks!

    Thread Starter iarsov

    (@iarsov)

    Hi Jeremy,

    The issue occurs only when the post is sent via email (as new post notification).
    On the site all is fine.

    I write the shortcodes manually. I used [plain] shortocode to post code samples.
    Also I use SyntaxHighlighter Evolve plugin.

    After I switched the shortcode to [code] the issue disappeared.
    Looks like [plain] shortcode is not supported.

    Thanks,
    Ivica

    Plugin Author Jeremy Herve

    (@jeherve)

    Jetpack Mechanic 🚀

    Thanks for the extra details. It might indeed be best to use [code], [sourcecode], or [source] shortcodes with the SyntaxHighlighter Evolved plugin. [plain] appears to be a fallback that is used when a shortcode format is invalid.

    When using the plugin, the following format is usually recommended:

    [code language="php"]
    // Your code
    [/code]

    I hope this clarifies things a bit!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Syntaxhighlighter part stripped from email notifications’ is closed to new replies.