Skip to content

Commit

Permalink
Update Highlight.js to ~10.5.0
Browse files Browse the repository at this point in the history
See: https://github.com/highlightjs/highlight.js/releases/tag/10.5.0

Closes GH-30.

Reviewed-by: Titus Wormer <tituswormer@gmail.com>
  • Loading branch information
AviVahl authored Jan 2, 2021
1 parent 6778aa6 commit fdbbf14
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 8 deletions.
1 change: 1 addition & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,7 @@ low.registerLanguage(
)
low.registerLanguage('sml', require('highlight.js/lib/languages/sml'))
low.registerLanguage('sqf', require('highlight.js/lib/languages/sqf'))
low.registerLanguage('sql_more', require('highlight.js/lib/languages/sql_more'))
low.registerLanguage('sql', require('highlight.js/lib/languages/sql'))
low.registerLanguage('stan', require('highlight.js/lib/languages/stan'))
low.registerLanguage('stata', require('highlight.js/lib/languages/stata'))
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"dependencies": {
"fault": "^1.0.0",
"highlight.js": "~10.4.0"
"highlight.js": "~10.5.0"
},
"devDependencies": {
"browserify": "^17.0.0",
Expand Down
2 changes: 1 addition & 1 deletion readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ auto-detection.
Perfect for [React][], [VDOM][], and others.

Lowlight is built to work with all syntaxes supported by [highlight.js][],
that’s [190 languages][names] (and all 94 themes).
that’s [191 languages][names] (and all 94 themes).

Want to use [Prism][] instead?
Try [`refractor`][refractor]!
Expand Down
10 changes: 5 additions & 5 deletions test/fixture/http-default/output.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<span class="hljs-keyword">POST</span> <span class="hljs-string">/task?id=1</span> HTTP/1.1
<span class="hljs-attribute">Host</span>: example.org
<span class="hljs-attribute">Content-Type</span>: application/json; charset=utf-8
<span class="hljs-attribute">Content-Length</span>: 19
<span class="hljs-keyword">POST</span> <span class="hljs-string">/task?id=1</span> <span class="hljs-meta">HTTP/1.1</span>
<span class="hljs-attribute">Host</span><span class="hljs-punctuation">: </span>example.org
<span class="hljs-attribute">Content-Type</span><span class="hljs-punctuation">: </span>application/json; charset=utf-8
<span class="hljs-attribute">Content-Length</span><span class="hljs-punctuation">: </span>19

<span class="json">{<span class="hljs-attr">"status"</span>: <span class="hljs-string">"ok"</span>, <span class="hljs-attr">"extended"</span>: <span class="hljs-literal">true</span>}</span>
<span class="json">{<span class="hljs-attr">&quot;status&quot;</span>: <span class="hljs-string">&quot;ok&quot;</span>, <span class="hljs-attr">&quot;extended&quot;</span>: <span class="hljs-literal">true</span>}</span>
2 changes: 1 addition & 1 deletion test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -326,7 +326,7 @@ test('listLanguages', function (t) {
var mockName = 'testtest'

// If this test fails, update `readme.md`.
t.equal(expectedLanguages.length, 190, 'should match `readme.md`')
t.equal(expectedLanguages.length, 191, 'should match `readme.md`')

t.deepEqual(
low.listLanguages(),
Expand Down

0 comments on commit fdbbf14

Please sign in to comment.