Skip to content

Commit

Permalink
chore(deps-dev): bump highlight.js from 10.7.3 to 11.4.0
Browse files Browse the repository at this point in the history
Bumps [highlight.js](https://github.com/highlightjs/highlight.js) from 10.7.3 to 11.4.0.
- [Release notes](https://github.com/highlightjs/highlight.js/releases)
- [Changelog](https://github.com/highlightjs/highlight.js/blob/main/CHANGES.md)
- [Commits](highlightjs/highlight.js@10.7.3...11.4.0)

---
updated-dependencies:
- dependency-name: highlight.js
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
  • Loading branch information
dependabot[bot] authored and LeBenLeBen committed Mar 2, 2022
1 parent 8ab1fc7 commit b5c4ea3
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion packages/chusho/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
"cypress": "^9.5.0",
"cypress-plugin-tab": "^1.0.5",
"express": "^4.17.3",
"highlight.js": "^10.7.3",
"highlight.js": "^11.4.0",
"jest": "^27.5.1",
"lodash": "^4.17.21",
"start-server-and-test": "^1.14.0",
Expand Down
10 changes: 6 additions & 4 deletions packages/chusho/public/highlightWorker.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,20 @@
self.importScripts(
'https://unpkg.com/prettier@2.2.1/standalone.js',
'https://unpkg.com/prettier@2.2.1/parser-html.js',
'https://unpkg.com/@highlightjs/cdn-assets@10.6.0/highlight.min.js',
'https://unpkg.com/@highlightjs/cdn-assets@10.6.0/languages/xml.min.js'
'https://unpkg.com/@highlightjs/cdn-assets@11.4.0/highlight.min.js',
'https://unpkg.com/@highlightjs/cdn-assets@11.4.0/languages/xml.min.js'
);

self.addEventListener('message', (e) => {
const code = self.hljs.highlight(
'xml',
self.prettier.format(e.data, {
parser: 'html',
plugins: self.prettierPlugins,
htmlWhitespaceSensitivity: 'ignore',
})
}),
{
language: 'xml',
}
).value;

self.postMessage(code);
Expand Down

0 comments on commit b5c4ea3

Please sign in to comment.