diff --git a/package.json b/package.json index 72d1a58..41f72b3 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "eslint": "^7.0.0", "express": "^4.14.0", "gh-pages": "^2.2.0", - "highlight.js": "^9.18.1", + "highlight.js": "^10.0.3", "markdown-it-abbr": "^1.0.4", "markdown-it-container": "^2.0.0", "markdown-it-deflist": "^2.0.0", diff --git a/support/demo_template/index.js b/support/demo_template/index.js index 7365589..8414c9a 100644 --- a/support/demo_template/index.js +++ b/support/demo_template/index.js @@ -6,7 +6,7 @@ var mdurl = require('mdurl'); -var hljs = require('highlight.js/lib/highlight.js'); +var hljs = require('highlight.js/lib/core'); hljs.registerLanguage('actionscript', require('highlight.js/lib/languages/actionscript')); hljs.registerLanguage('apache', require('highlight.js/lib/languages/apache')); @@ -18,6 +18,8 @@ hljs.registerLanguage('bash', require('highlight.js/lib/languages/bash') hljs.registerLanguage('clojure', require('highlight.js/lib/languages/clojure')); hljs.registerLanguage('cmake', require('highlight.js/lib/languages/cmake')); hljs.registerLanguage('coffeescript', require('highlight.js/lib/languages/coffeescript')); +hljs.registerLanguage('c-like', require('highlight.js/lib/languages/c-like')); +hljs.registerLanguage('c', require('highlight.js/lib/languages/c')); hljs.registerLanguage('cpp', require('highlight.js/lib/languages/cpp')); hljs.registerLanguage('arduino', require('highlight.js/lib/languages/arduino')); hljs.registerLanguage('css', require('highlight.js/lib/languages/css')); @@ -35,6 +37,7 @@ hljs.registerLanguage('ini', require('highlight.js/lib/languages/ini')) hljs.registerLanguage('java', require('highlight.js/lib/languages/java')); hljs.registerLanguage('javascript', require('highlight.js/lib/languages/javascript')); hljs.registerLanguage('json', require('highlight.js/lib/languages/json')); +hljs.registerLanguage('latex', require('highlight.js/lib/languages/latex')); hljs.registerLanguage('less', require('highlight.js/lib/languages/less')); hljs.registerLanguage('lisp', require('highlight.js/lib/languages/lisp')); hljs.registerLanguage('livescript', require('highlight.js/lib/languages/livescript'));