don't syntax highlight languages that begin with "_"
This commit is contained in:
parent
f8f9c4880a
commit
2ce493307e
3 changed files with 3 additions and 3 deletions
|
@ -107,7 +107,7 @@ export default createReactClass({
|
|||
} else {
|
||||
// Only syntax highlight if there's a class starting with language-
|
||||
const classes = blocks[i].className.split(/\s+/).filter(function(cl) {
|
||||
return cl.startsWith('language-');
|
||||
return cl.startsWith('language-') && !cl.startsWith('language-_');
|
||||
});
|
||||
|
||||
if (classes.length != 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue