does Marked 2 support pandoc syntax highlighting?

rpdooling's Avatar


12 Nov, 2013 01:15 AM

In pandoc markdown, syntax identifiers work like this:


some code


But the language specifier doesn't seem to work in Marked2, even when I use pandoc as the custom processor.

Is this what others see as well?


Rick Dooling

  1. Support Staff 1 Posted by Brett on 12 Nov, 2013 03:08 AM

    Brett's Avatar

    I'm unfamiliar with this syntax, apparently. Marked accepts a token like that _after_ the closing fence, but not at the beginning. If this is common notation I'll have to make some code adjustments.


  2. 2 Posted by rpdooling on 12 Nov, 2013 09:54 AM

    rpdooling's Avatar

    Here is the description:

    But now on closer examination, I see that pandoc will also accept your format, that is:


    So I'll just use that. Thanks!


  3. 3 Posted by Enrico Spiniell... on 14 Nov, 2013 04:21 PM

    Enrico Spinielli's Avatar

    I am interested in having Marked2 support syntax highlighting for pandoc's fenced code blocks.
    I use them intensively and proper syntax highligting is improving quality a lot.

    Thanks for considering this request

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