##// END OF EJS Templates
Revert "Removed Javascript from Markdown by adding display priority to def config."...
Jonathan Frederic -
Show More
@@ -1,49 +1,43 b''
1 1 """Markdown Exporter class"""
2 2
3 3 #-----------------------------------------------------------------------------
4 4 # Copyright (c) 2013, the IPython Development Team.
5 5 #
6 6 # Distributed under the terms of the Modified BSD License.
7 7 #
8 8 # The full license is in the file COPYING.txt, distributed with this software.
9 9 #-----------------------------------------------------------------------------
10 10
11 11 #-----------------------------------------------------------------------------
12 12 # Imports
13 13 #-----------------------------------------------------------------------------
14 14
15 15 from IPython.config import Config
16 16
17 17 from .templateexporter import TemplateExporter
18 18
19 19 #-----------------------------------------------------------------------------
20 20 # Classes
21 21 #-----------------------------------------------------------------------------
22 22
23 23 class MarkdownExporter(TemplateExporter):
24 24 """
25 25 Exports to a markdown document (.md)
26 26 """
27 27
28 28 def _file_extension_default(self):
29 29 return 'md'
30 30
31 31 def _template_file_default(self):
32 32 return 'markdown'
33 33
34 34 output_mimetype = 'text/markdown'
35 35
36 36 def _raw_mimetypes_default(self):
37 37 return ['text/markdown', 'text/html', '']
38 38
39 39 @property
40 40 def default_config(self):
41 c = Config({
42 'NbConvertBase': {
43 'display_data_priority': ['html', 'application/pdf', 'svg', 'latex', 'png', 'jpg', 'jpeg' , 'text']
44 },
45 'ExtractOutputPreprocessor': {
46 'enabled':True}
47 })
41 c = Config({'ExtractOutputPreprocessor':{'enabled':True}})
48 42 c.merge(super(MarkdownExporter,self).default_config)
49 43 return c
General Comments 0
You need to be logged in to leave comments. Login now