Jekyll Syntax Highlighting Not Working - Classes Are Not Being Added

后端 未结 3 1058
囚心锁ツ
囚心锁ツ 2021-01-14 08:43

I cannot get syntax highlighting to work on my Jekyll-powered blog.

The development files can be found here: https://github.com/StevenXL/stevenxl.github.io.

3条回答
  •  醉梦人生
    2021-01-14 09:23

    I had the same issue using the monokai highlighting css from the jekyll-uno theme.

    To solve the problem I had to update the CSS, using rouge itself is quite straightforward (taken from the docs):

    rougify style monokai > css/monokai.css

    There are other themes available, too.

提交回复
热议问题