Update packages, including new highlight.js which supports our newer keywords and triple backticks (docs output is unchanged)
This commit is contained in:
parent
85b3be9ce3
commit
818d262843
|
@ -13,10 +13,6 @@ module.exports = ->
|
||||||
js = js.replace /^\/\/ generated.*?\n/i, ''
|
js = js.replace /^\/\/ generated.*?\n/i, ''
|
||||||
|
|
||||||
cshtml = "<pre><code>#{hljs.highlight('coffeescript', cs).value}</code></pre>"
|
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>"
|
jshtml = "<pre><code>#{hljs.highlight('javascript', js).value}</code></pre>"
|
||||||
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '"'
|
append = if executable is yes then '' else "alert(#{executable});".replace /"/g, '"'
|
||||||
if executable and executable isnt yes
|
if executable and executable isnt yes
|
||||||
|
|
|
@ -40,8 +40,8 @@
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"docco": "~0.7.0",
|
"docco": "~0.7.0",
|
||||||
"google-closure-compiler-js": "^20161024.0.0",
|
"google-closure-compiler-js": "^20161201.0.0",
|
||||||
"highlight.js": "~9.8.0",
|
"highlight.js": "~9.9.0",
|
||||||
"jison": ">=0.4.17",
|
"jison": ">=0.4.17",
|
||||||
"marked": "^0.3.6",
|
"marked": "^0.3.6",
|
||||||
"underscore": "~1.8.3"
|
"underscore": "~1.8.3"
|
||||||
|
|
Loading…
Reference in New Issue