Skip to content

Commit 8e861d3

Browse files
deps: Highlight.js deprecations #1365 fixed
1 parent c6c64ea commit 8e861d3

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

__tests__/__snapshots__/test.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1540,7 +1540,7 @@ myFoo.foo(42);
15401540
\`\`\`
15411541

15421542
\`\`\`html
1543-
<p data-foo>Data-Foo Element in the dom</p>
1543+
<p data-foo=bar>Data-Foo Element in the dom</p>
15441544
\`\`\`
15451545

15461546
\`\`\`css

__tests__/fixture/auto_lang_hljs/multilanguage.input.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* var myFoo = new Foo('[data-foo]');
66
* myFoo.foo(42);
77
* @example
8-
* <p data-foo>Data-Foo Element in the dom</p>
8+
* <p data-foo=bar>Data-Foo Element in the dom</p>
99
* @example
1010
* [data-foo] {
1111
* background-color: red;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"github-slugger": "1.2.0",
4747
"glob": "^7.1.2",
4848
"globals-docs": "^2.4.0",
49-
"highlight.js": "^10.5.0",
49+
"highlight.js": "^10.7.2",
5050
"ini": "^1.3.5",
5151
"js-yaml": "^3.10.0",
5252
"lodash": "^4.17.10",

src/default_theme/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ module.exports = function (comments, config) {
8080
if (config.hljs && config.hljs.highlightAuto) {
8181
return hljs.highlightAuto(example).value;
8282
}
83-
return hljs.highlight('js', example).value;
83+
return hljs.highlight(example, { language: 'js' }).value;
8484
}
8585
}
8686
};

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3730,10 +3730,10 @@ he@^1.1.0:
37303730
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
37313731
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==
37323732

3733-
highlight.js@^10.5.0:
3734-
version "10.5.0"
3735-
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.5.0.tgz#3f09fede6a865757378f2d9ebdcbc15ba268f98f"
3736-
integrity sha512-xTmvd9HiIHR6L53TMC7TKolEj65zG1XU+Onr8oi86mYa+nLcIbxTTWkpW7CsEwv/vK7u1zb8alZIMLDqqN6KTw==
3733+
highlight.js@^10.7.2:
3734+
version "10.7.2"
3735+
resolved "https://registry.yarnpkg.com/highlight.js/-/highlight.js-10.7.2.tgz#89319b861edc66c48854ed1e6da21ea89f847360"
3736+
integrity sha512-oFLl873u4usRM9K63j4ME9u3etNF0PLiJhSQ8rdfuL51Wn3zkD6drf9ZW0dOzjnZI22YYG24z30JcmfCZjMgYg==
37373737

37383738
hosted-git-info@^2.1.4:
37393739
version "2.8.8"

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy