Skip to content

Commit

Permalink
Update Highlight.js to ~11.11
Browse files Browse the repository at this point in the history
  • Loading branch information
wooorm committed Dec 14, 2024
1 parent 3d794f3 commit 474083b
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"dependencies": {
"@types/hast": "^3.0.0",
"devlop": "^1.0.0",
"highlight.js": "~11.10.0"
"highlight.js": "~11.11.0"
},
"devDependencies": {
"@types/mdast": "^4.0.0",
Expand Down
4 changes: 2 additions & 2 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -573,7 +573,7 @@ where `xxx` is the name, such as `'highlight.js/lib/languages/wasm'`.
* [ ] `livescript` (`ls`) — LiveScript
* [ ] `llvm` — LLVM IR
* [ ] `lsl` — LSL (Linden Scripting Language)
* [x] `lua` — Lua
* [x] `lua` (`pluto`) — Lua
* [x] `makefile` (`mk`, `mak`, `make`) — Makefile
* [x] `markdown` (`md`, `mkdown`, `mkd`) — Markdown
* [ ] `mathematica` (`mma`, `wl`) — Mathematica
Expand Down Expand Up @@ -676,7 +676,7 @@ If you are in a browser, you can use any `highlight.js` theme.
For example, to get GitHub Dark from cdnjs:
```html
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.10.0/styles/github-dark.min.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.11.0/styles/github-dark.min.css">
```
## Compatibility
Expand Down
8 changes: 4 additions & 4 deletions test/fixture/rust-strings/output.txt
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<span class="hljs-string">'a'</span>;
<span class="hljs-string">'\n'</span>;
<span class="hljs-string">'\x1A'</span>;
<span class="hljs-string">'\u12AS'</span>;
<span class="hljs-string">'\U1234ASDF'</span>;
<span class="hljs-string">'<span class="hljs-char escape_">\n</span>'</span>;
<span class="hljs-string">'<span class="hljs-char escape_">\x</span>1A'</span>;
<span class="hljs-string">'<span class="hljs-char escape_">\u</span>12AS'</span>;
<span class="hljs-string">'<span class="hljs-char escape_">\U</span>1234ASDF'</span>;
<span class="hljs-string">b'a'</span>;

<span class="hljs-string">"hello"</span>;
Expand Down
6 changes: 3 additions & 3 deletions test/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ test('lowlight.highlight', async function (t) {
assert.throws(function () {
// @ts-expect-error: check how the runtime handles incorrect `name`.
lowlight.highlight(true)
}, /expected `string` as `name`/)
})
}
)

Expand All @@ -75,7 +75,7 @@ test('lowlight.highlight', async function (t) {
assert.throws(function () {
// @ts-expect-error: check how the runtime handles incorrect `value`.
lowlight.highlight('js', true)
}, /expected `string` as `value`/)
})
}
)

Expand Down Expand Up @@ -201,7 +201,7 @@ test('lowlight.highlightAuto', async function (t) {
assert.throws(function () {
// @ts-expect-error: check how the runtime handles incorrect `value`.
lowlight.highlightAuto(true)
}, /expected `string` as `value`/)
})
})

await t.test('should work on empty code', async function () {
Expand Down

0 comments on commit 474083b

Please sign in to comment.