does Marked 2 support pandoc syntax highlighting?
In pandoc markdown, syntax identifiers work like this:
~~~~{.python}
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?
Thanks,
Rick Dooling
Keyboard shortcuts
Generic
? | 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
Support Staff 1 Posted by Brett on 12 Nov, 2013 03:08 AM
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.
-Brett
2 Posted by rpdooling on 12 Nov, 2013 09:54 AM
Here is the description:
http://johnmacfarlane.net/pandoc/demo/example9/pandocs-markdown.html#verbatim-code-blocks
But now on closer examination, I see that pandoc will also accept your format, that is:
~~~~ruby
code
~~~~
So I'll just use that. Thanks!
Rick
3 Posted by Enrico Spiniell... on 14 Nov, 2013 04:21 PM
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
Regards
Enrico