Browse Source

Demo: bump highlight.js

pull/682/head
Vitaly Puzrin 5 years ago
parent
commit
5789a3fe96
  1. 2
      package.json
  2. 5
      support/demo_template/index.js

2
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",

5
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'));

Loading…
Cancel
Save