We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 65605cd commit 7c2cc02Copy full SHA for 7c2cc02
public/js/highlight-worker.js
@@ -1,7 +1,10 @@
1
// A very simple web worker for highlight.js
2
// See: https://highlightjs.org/usage/
3
+'use strict';
4
+
5
+importScripts('/vendor/plugins/highlight/highlight.pack.js');
6
7
onmessage = function(event) {
- importScripts('/vendor/plugins/highlight/highlight.pack.js');
8
var result = self.hljs.highlightAuto(event.data.text);
9
postMessage({index: event.data.index, html: result.value});
10
};
0 commit comments