diff --git a/IPython/nbconvert/exporters/exporter.py b/IPython/nbconvert/exporters/exporter.py index cc77fc7..cc6328d 100644 --- a/IPython/nbconvert/exporters/exporter.py +++ b/IPython/nbconvert/exporters/exporter.py @@ -115,6 +115,9 @@ class Exporter(LoggingConfigurable): """ nb_copy = copy.deepcopy(nb) resources = self._init_resources(resources) + + if 'language' in nb['metadata']: + resources['language'] = nb['metadata']['language'].lower() # Preprocess nb_copy, resources = self._preprocess(nb_copy, resources) diff --git a/IPython/nbconvert/templates/html/basic.tpl b/IPython/nbconvert/templates/html/basic.tpl index 8bc1b1a..aa8c40a 100644 --- a/IPython/nbconvert/templates/html/basic.tpl +++ b/IPython/nbconvert/templates/html/basic.tpl @@ -41,7 +41,7 @@ In [{{ cell.prompt_number }}]: {% block input %}