|
@@ -11,6 +11,7 @@ var MAP_LANGUAGES = {
|
|
'js': 'javascript',
|
|
'js': 'javascript',
|
|
'rb': 'ruby',
|
|
'rb': 'ruby',
|
|
'cs': 'csharp',
|
|
'cs': 'csharp',
|
|
|
|
+ 'sh': 'bash',
|
|
'html': 'markup'
|
|
'html': 'markup'
|
|
};
|
|
};
|
|
|
|
|
|
@@ -69,10 +70,11 @@ module.exports = {
|
|
code: function(block) {
|
|
code: function(block) {
|
|
|
|
|
|
var highlighted = '';
|
|
var highlighted = '';
|
|
|
|
+ var userDefined = this.config.get('pluginsConfig.prism.lang', {});
|
|
|
|
|
|
// Normalize language id
|
|
// Normalize language id
|
|
var lang = block.kwargs.language || DEFAULT_LANGUAGE;
|
|
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
|
|
// Try and find the language definition in components folder
|
|
if (!languages[lang]) {
|
|
if (!languages[lang]) {
|