diff --git a/homepage/knowledge/cat.html b/homepage/knowledge/cat.html index 75405e2..be05f9d 100644 --- a/homepage/knowledge/cat.html +++ b/homepage/knowledge/cat.html @@ -47,10 +47,11 @@ window.load_highlighting = function(language){ var language = window.to_be_highlighted.shift() var elements = document.getElementsByClassName("language-" + language); for(var i = 0; i < elements.length; ++i) - try + try{ hljs.highlightElement(element); - catch(err) + }catch(err){ console.log(err.message); + } window.is_highlighted_languages.push(language); }