matcornic/hugo-theme-learn

Using hugo's native syntax highlighting

Open

#371 创建于 2020年2月10日

在 GitHub 查看
 (3 评论) (0 反应) (0 负责人)HTML (1,575 star) (1,427 fork)batch import
featurehelp wanted

描述

Dear,

Now we can activate Hugo's native syntax highlighting rather using highlight.js Hugo color my code before highlight.js render it, then highlight.js do again. I did this with Hugo 0.63.0

I disabled it by replacing static/js/highlight.min.js as

function EmptyHljs() {};
EmptyHljs.prototype.initHighlightingOnLoad = function(){};

But it looks weird, isn't it?

Thanks.

贡献者指南