Closed davepwsmith closed 10 years ago
Have answered my own question this morning. Pandoc doesn't use the pygments library, but its own definition set, for which sample CSS can be found in John MacFarlane's Highlighting-Kate repo. I'm going to submit a feature request that suggests that he aligns his CSS output with that of other highlighters such as pygments, but I don't know if that's really a fair ask.
Anybody else who wants to include syntax highlighting needs to have one of these css files in use.
Syntax highlighting is probably a bigger task, and I'm not sure whether we can expect changes in Pandoc any time soon. Besides Pygments, the rouge gem is an interesting alternative for Ruby (Jekyll) without a Python dependency.
Hi there, anyone has some advice how to solve this issue?
No syntax highlighting? 😢
Hi there, anyone has some advice how to solve this issue?
I just use this script to generate a pygments.css
file.
From there you just have to add that file to your html and it will highlight your code blocks.
Using this gem I can't get syntax highlighting to work either via jekyll or via pandoc. Is this a known problem/feature?