Skip to content

Commit

Permalink
deps: Highlight.js deprecations #1365 fixed (#1367)
Browse files Browse the repository at this point in the history
  • Loading branch information
anthony-redFox committed Apr 6, 2021
1 parent c6c64ea commit c3e85eb
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion __tests__/__snapshots__/test.js.snap
Expand Up @@ -1540,7 +1540,7 @@ myFoo.foo(42);
\`\`\`

\`\`\`html
<p data-foo>Data-Foo Element in the dom</p>
<p data-foo=bar>Data-Foo Element in the dom</p>
\`\`\`

\`\`\`css
Expand Down
2 changes: 1 addition & 1 deletion __tests__/fixture/auto_lang_hljs/multilanguage.input.js
Expand Up @@ -5,7 +5,7 @@
* var myFoo = new Foo('[data-foo]');
* myFoo.foo(42);
* @example
* <p data-foo>Data-Foo Element in the dom</p>
* <p data-foo=bar>Data-Foo Element in the dom</p>
* @example
* [data-foo] {
* background-color: red;
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -46,7 +46,7 @@
"github-slugger": "1.2.0",
"glob": "^7.1.2",
"globals-docs": "^2.4.0",
"highlight.js": "^10.5.0",
"highlight.js": "^10.7.2",
"ini": "^1.3.5",
"js-yaml": "^3.10.0",
"lodash": "^4.17.10",
Expand Down
2 changes: 1 addition & 1 deletion src/default_theme/index.js
Expand Up @@ -80,7 +80,7 @@ module.exports = function (comments, config) {
if (config.hljs && config.hljs.highlightAuto) {
return hljs.highlightAuto(example).value;
}
return hljs.highlight('js', example).value;
return hljs.highlight(example, { language: 'js' }).value;
}
}
};
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Expand Up @@ -3730,10 +3730,10 @@ he@^1.1.0:
resolved "https://registry.yarnpkg.com/he/-/he-1.2.0.tgz#84ae65fa7eafb165fddb61566ae14baf05664f0f"
integrity sha512-F/1DnUGPopORZi0ni+CvrCgHQ5FyEAHRLSApuYWMmrbSwoN2Mn/7k+Gl38gJnR7yyDZk6WLXwiGod1JOWNDKGw==

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

hosted-git-info@^2.1.4:
version "2.8.8"
Expand Down

0 comments on commit c3e85eb

Please sign in to comment.