Jekyll on Windows: Pygments not working

前端 未结 10 1320
失恋的感觉
失恋的感觉 2020-12-23 20:06

I updated to the latest JekyllBuild (1.0.3) before I always used the RC. After updating the parsing of codes (with Pygments) doesn\'t work anymore. I always get the followin

10条回答
  •  不思量自难忘°
    2020-12-23 20:37

    Expanding upon zzheng's explanation, if you're still having issues try running gem list. Then make sure pygments.rb (0.5.2) isn't installed. If it is, just run this command.

    gem uninstall pygments.rb --version "=0.5.2"
    

    That should take care of your problem, and you should be able to publish with Jekyll happily on Windows once again.

    EDIT: Also, based upon my own experience, this may cause another error. Liquid Error: Failed to get header. in 2013-07-20-post-name-here.md. The (unconfirmed) solution is to install Python 2.7.* if you have not already done so, although some people report that this does not fix the problem.

    Further Reading:

    Jekyll Github Issue #1181

    Pygments.rb Github Issue #45

    Run jekyll --server Failed in Win7

提交回复
热议问题