mfenner / jekyll-pandoc

Jekyll Pandoc markdown converter as Ruby gem
MIT License
82 stars 10 forks source link

Syntax highlighting #1

Closed davepwsmith closed 10 years ago

davepwsmith commented 10 years ago

Using this gem I can't get syntax highlighting to work either via jekyll or via pandoc. Is this a known problem/feature?

davepwsmith commented 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.

mfenner commented 10 years ago

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.

hstojic commented 7 years ago

Hi there, anyone has some advice how to solve this issue?

serranomorante commented 1 year ago

No syntax highlighting? 😢

serranomorante commented 1 year ago

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.