Skip to content

Commit

Permalink
highlight.js only uses lowercase names
Browse files Browse the repository at this point in the history
  • Loading branch information
TN1ck committed May 25, 2014
1 parent 57fe59f commit ae09bc4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/markdown-pdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ function markdownpdf (opts) {
var markedOptions = {
highlight: function (code, lang) {

lang = lang.toLowerCase();

if (lang && !highlight.getLanguage(lang)) {
return code;
}
Expand Down

0 comments on commit ae09bc4

Please sign in to comment.