Skip to content

Commit

Permalink
Bump highlight.js from 9.18.1 to 10.1.1
Browse files Browse the repository at this point in the history
Bumps highlight.js from 9.18.1 to 10.1.1

After review of [VERSION_10_UPGRADE.md](https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_UPGRADE.md) and [VERSION_10_BREAKING_CHANGES.md](https://github.com/highlightjs/highlight.js/blob/master/VERSION_10_BREAKING_CHANGES.md), found no incompatibility with markdown-it-highlightjs.

Although one of the tests add to be adjusted since v10 no longer outputs surrounding `<span class='php'>...</span>`
  • Loading branch information
vfcp committed Jul 16, 2020
1 parent 967f7ae commit 437acd2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"test": "npm run lint && node test"
},
"dependencies": {
"highlight.js": "^9.18.1",
"highlight.js": "^10.1.1",
"lodash.flow": "^3.5.0"
},
"devDependencies": {
Expand Down
4 changes: 2 additions & 2 deletions test.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ equal(

equal(
md().use(highlightjs).render('```\n<?php echo 42;\n```'),
`<pre><code class="hljs"><span class="php"><span class="hljs-meta">&lt;?php</span> <span class="hljs-keyword">echo</span> <span class="hljs-number">42</span>;
</span></code></pre>
`<pre><code class="hljs"><span class="hljs-meta">&lt;?php</span> <span class="hljs-keyword">echo</span> <span class="hljs-number">42</span>;
</code></pre>
`)

equal(
Expand Down

0 comments on commit 437acd2

Please sign in to comment.