pygments problems in jekyll

2.2k Views Asked by At

I use jekyll in github pages. http://juanpabloaj.github.com/

But, when I add the syntax.css file for pygments

 <link rel="stylesheet" href="/css/syntax.css" type="text/css" media="screen" /> 

default.html

jekyll don't show the syntax, I have set on the pygments line

 pygments:    true

pygments-true

4

There are 4 best solutions below

2
novemberkilo On

Have you installed pygments locally per the instructions here https://github.com/mojombo/jekyll/wiki/install

0
thekingoftruth On

I had to make sure I specified markdown: maruku for some reason in the _config.yml file.

0
Andre Christoga On

Try to use this?

<link rel="stylesheet" href="{{ "/css/syntax.css" | prepend: site.baseurl }}">
0
hoju On

To get syntax highlighting working in the latest version you need to update markdown to the new parser in _config.yml:

markdown: kramdown