##// END OF EJS Templates
fix javascript mime-type in HTML exporter...
Min RK -
Show More
@@ -37,7 +37,7 b' class HTMLExporter(TemplateExporter):'
37 37 def default_config(self):
38 38 c = Config({
39 39 'NbConvertBase': {
40 'display_data_priority' : ['text/javascript', 'text/html', 'text/markdown', 'application/pdf', 'image/svg+xml', 'text/latex', 'image/png', 'image/jpeg', 'text/plain']
40 'display_data_priority' : ['application/javascript', 'text/html', 'text/markdown', 'application/pdf', 'image/svg+xml', 'text/latex', 'image/png', 'image/jpeg', 'text/plain']
41 41 },
42 42 'CSSHTMLHeaderPreprocessor':{
43 43 'enabled':True
@@ -192,7 +192,7 b" height={{output.metadata['image/jpeg']['height']}}"
192 192 {%- block data_javascript scoped %}
193 193 <div class="output_subarea output_javascript {{extra_class}}">
194 194 <script type="text/javascript">
195 {{ output.data['text/javascript'] }}
195 {{ output.data['application/javascript'] }}
196 196 </script>
197 197 </div>
198 198 {%- endblock -%}
General Comments 0
You need to be logged in to leave comments. Login now