Update packages, including new highlight.js which supports our newer keywords and triple backticks (docs output is unchanged)

This commit is contained in:
Geoffrey Booth 2016-12-14 00:06:20 -08:00
parent 85b3be9ce3
commit 818d262843
2 changed files with 2 additions and 6 deletions

View File

@ -13,10 +13,6 @@ module.exports = ->
js = js.replace /^\/\/ generated.*?\n/i, ''
cshtml = "<pre><code>#{hljs.highlight('coffeescript', cs).value}</code></pre>"
# Temporary fix until highlight.js adds support for newer CoffeeScript keywords
# Added in https://github.com/isagalaev/highlight.js/pull/1357, awaiting release
if file in ['generator_iteration', 'generators', 'modules']
cshtml = cshtml.replace /(yield|import|export|from|as|default) /g, '<span class="keyword">$1</span> '
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '&quot;'
if executable and executable isnt yes

View File

@ -40,8 +40,8 @@
},
"devDependencies": {
"docco": "~0.7.0",
"google-closure-compiler-js": "^20161024.0.0",
"highlight.js": "~9.8.0",
"google-closure-compiler-js": "^20161201.0.0",
"highlight.js": "~9.9.0",
"jison": ">=0.4.17",
"marked": "^0.3.6",
"underscore": "~1.8.3"