Syntax highlighting in jekyll using redcarpet

后端 未结 3 711
滥情空心
滥情空心 2021-01-06 02:45

I\'m trying to get code highlighting to work for a simple blog built with jekyll. I want to be able to do code highlighting within posts written in markdown so I enabled red

3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-06 03:08

    I like to share the solution as I faced and it took much time to get rid of this issue. Default syntax highlighting is very poor in Jekyll. Like David said, You really need some CSS magic. Check this gist to solve the syntax highlighting problem.

提交回复
热议问题