Skip to content

Commit ca66e35

Browse files
committed
Merge branch 'new_branch' of https://github.com/IsidoraSlavkovic/showdown-highlight into new-version
2 parents 9091d32 + a9d31c9 commit ca66e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ module.exports = function showdownHighlight({ pre = false }) {
5353
}
5454

5555
if (lang && hljs.getLanguage(lang)) {
56-
return left + hljs.highlight(lang, match).value + right;
56+
return left + hljs.highlight(match, { language: lang }).value + right;
5757
} else {
5858
return left + hljs.highlightAuto(match).value + right;
5959
}

0 commit comments

Comments
 (0)