Skip to content

Commit

Permalink
feat: make code type insensitive (close: #347)
Browse files Browse the repository at this point in the history
  • Loading branch information
ulivz committed May 6, 2018
1 parent 6514c8f commit 5e87b65
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/markdown/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ module.exports = (str, lang) => {
if (!lang) {
return wrap(str, 'text')
}
lang = lang.toLowerCase()
const rawLang = lang
if (lang === 'vue' || lang === 'html') {
lang = 'markup'
Expand Down

0 comments on commit 5e87b65

Please sign in to comment.