Skip to content

Commit

Permalink
Fix isNotHighlighted to match the entire word
Browse files Browse the repository at this point in the history
  • Loading branch information
sourrust committed Aug 15, 2015
1 parent b83ac3e commit 938a3aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/highlight.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ https://highlightjs.org/
}

function isNotHighlighted(language) {
return /no-?highlight|plain|text/.test(language);
return /^(no-?highlight|plain|text)$/.test(language);
}

function blockLanguage(block) {
Expand Down

0 comments on commit 938a3aa

Please sign in to comment.