|
@@ -70,10 +70,11 @@ module.exports = {
|
|
|
code: function(block) {
|
|
|
|
|
|
var highlighted = '';
|
|
|
+ var userDefined = this.config.get('pluginsConfig.prism.lang', {});
|
|
|
|
|
|
// Normalize language id
|
|
|
var lang = block.kwargs.language || DEFAULT_LANGUAGE;
|
|
|
- lang = MAP_LANGUAGES[lang] || lang;
|
|
|
+ lang = userDefined[lang] || MAP_LANGUAGES[lang] || lang;
|
|
|
|
|
|
// Try and find the language definition in components folder
|
|
|
if (!languages[lang]) {
|