Skip to content

Commit a507ece

Browse files
authored
Merge pull request #196 from bdunn313/bump-highlightjs-dependency-to-v10
Bump highlight.js to v10
2 parents 9266d74 + a679a6e commit a507ece

File tree

6 files changed

+10
-10
lines changed

6 files changed

+10
-10
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"gentype": "^3.1.0",
2222
"glob": "^7.1.4",
2323
"gray-matter": "^4.0.2",
24-
"highlight.js": "^9.15.10",
24+
"highlight.js": "^10.5.0",
2525
"lz-string": "^1.4.4",
2626
"next": "10.0.0",
2727
"next-transpile-modules": "^2.3.1",

src/common/App.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/App.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
// Register all the highlightjs stuff for the whole application
99
%%raw(`
10-
let hljs = require('highlight.js/lib/highlight');
10+
let hljs = require('highlight.js/lib/core');
1111
let js = require('highlight.js/lib/languages/javascript');
1212
let ocaml = require('highlight.js/lib/languages/ocaml');
1313
let reason = require('plugins/reason-highlightjs');

src/common/HighlightJs.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/HighlightJs.res

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
@bs.deriving(abstract)
22
type highlightResult = {value: string}
33

4-
@bs.module("highlight.js/lib/highlight")
4+
@bs.module("highlight.js/lib/core")
55
external highlight: (~lang: string, ~value: string) => highlightResult = "highlight"
66

77
let renderHLJS = (~highlightedLines=[], ~darkmode=false, ~code: string, ~lang: string, ()) => {

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4106,10 +4106,10 @@ hex-color-regex@^1.1.0:
41064106
resolved "https://registry.yarnpkg.com/hex-color-regex/-/hex-color-regex-1.1.0.tgz#4c06fccb4602fe2602b3c93df82d7e7dbf1a8a8e"
41074107
integrity sha512-l9sfDFsuqtOqKDsQdqrMRk0U85RZc0RtOR9yPI7mRVOa4FsR/BVnZ0shmQRM96Ji99kYZP/7hn1cedc1+ApsTQ==
41084108

4109-
highlight.js@^9.15.10:
4110-
version "9.18.3"
4111-
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-9.18.3.tgz#a1a0a2028d5e3149e2380f8a865ee8516703d634"
4112-
integrity sha512-zBZAmhSupHIl5sITeMqIJnYCDfAEc3Gdkqj65wC1lpI468MMQeeQkhcIAvk+RylAkxrCcI9xy9piHiXeQ1BdzQ==
4109+
highlight.js@^10.5.0:
4110+
version "10.5.0"
4111+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.5.0.tgz#3f09fede6a865757378f2d9ebdcbc15ba268f98f"
4112+
integrity sha512-xTmvd9HiIHR6L53TMC7TKolEj65zG1XU+Onr8oi86mYa+nLcIbxTTWkpW7CsEwv/vK7u1zb8alZIMLDqqN6KTw==
41134113

41144114
hmac-drbg@^1.0.0:
41154115
version "1.0.1"

0 commit comments

Comments
 (0)