|
@@ -86,11 +86,17 @@ module.exports = {
|
|
|
|
|
|
var highlighted = '';
|
|
var highlighted = '';
|
|
var userDefined = getConfig(this, 'pluginsConfig.prism.lang', {});
|
|
var userDefined = getConfig(this, 'pluginsConfig.prism.lang', {});
|
|
|
|
+ var userIgnored = getConfig(this, 'pluginsConfig.prism.ignore', []);
|
|
|
|
|
|
// Normalize language id
|
|
// Normalize language id
|
|
var lang = block.kwargs.language || DEFAULT_LANGUAGE;
|
|
var lang = block.kwargs.language || DEFAULT_LANGUAGE;
|
|
lang = userDefined[lang] || MAP_LANGUAGES[lang] || lang;
|
|
lang = userDefined[lang] || MAP_LANGUAGES[lang] || lang;
|
|
|
|
|
|
|
|
+ // Check to see if the lang is ignored
|
|
|
|
+ if (userIgnored.indexOf(lang) === -1) {
|
|
|
|
+ return block.body
|
|
|
|
+ }
|
|
|
|
+
|
|
// Try and find the language definition in components folder
|
|
// Try and find the language definition in components folder
|
|
if (!languages[lang]) {
|
|
if (!languages[lang]) {
|
|
try {
|
|
try {
|