matcornic/hugo-theme-learn

Using hugo's native syntax highlighting

Open

#371 opened on Feb 10, 2020

View on GitHub
 (3 comments) (0 reactions) (0 assignees)HTML (1,427 forks)batch import
featurehelp wanted

Repository metrics

Stars
 (1,575 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

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.

Contributor guide