Skip to content

Commit 3b07626

Browse files
committed
Warn about unsupported languages
1 parent 99df8e9 commit 3b07626

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/md2html/md2html.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ const md = require('markdown-it')({
3636
'</code></pre>';
3737
}
3838

39+
if (lang) console.warn('highlight.js does not support language',lang);
3940
return '<pre class="nohighlight" tabindex="0"><code>' + md.utils.escapeHtml(str) + '</code></pre>';
4041
}
4142
});

0 commit comments

Comments
 (0)