Skip to content

Commit

Permalink
Merge pull request #11 from vfcp/master
Browse files Browse the repository at this point in the history
Bump highlight.js from 9.18.1 to 10.1.1
  • Loading branch information
valeriangalliat committed Sep 25, 2020
2 parents 967f7ae + 5b77dca commit 1c44695
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.js
Expand Up @@ -49,7 +49,7 @@ function inlineCodeRenderer (tokens, idx, options) {
}

const highlighted = options.highlight(code.content, lang)
const cls = lang ? ` class="language-${lang}"` : ''
const cls = lang ? ` class="${options.langPrefix + lang}"` : ''

return `<code${cls}>${highlighted}</code>`
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
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
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 1c44695

Please sign in to comment.