Syntax highlighting in jekyll using redcarpet

狂风中的少年 提交于 2019-12-01 19:02:15

You need some CSS magic. Use this one or pick one from here.

You can create the CSS with the highlighter itself

rougify style > rouge.css

Or

coderay stylesheet > coderay.css

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 site first to see what will be the outcome if you're following this gist to solve the syntax highlighting problem.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!