##// END OF EJS Templates
Relative import (suggested by @MinRK)
Relative import (suggested by @MinRK)

File last commit:

r12451:c2aa4e06
r12508:b23f5b15
Show More
markdown.py
38 lines | 1.2 KiB | text/x-python | PythonLexer
Jonathan Frederic
Cleanup and refactor of API, almost complete....
r10677 """
MinRK
various spelling and capitalization fixes
r11046 Exporter that will export your ipynb to Markdown.
Jonathan Frederic
Cleanup and refactor of API, almost complete....
r10677 """
Jonathan Frederic
Finished a rough draft of the exporters.
r10588 #-----------------------------------------------------------------------------
# Copyright (c) 2013, the IPython Development Team.
#
# Distributed under the terms of the Modified BSD License.
#
# The full license is in the file COPYING.txt, distributed with this software.
#-----------------------------------------------------------------------------
#-----------------------------------------------------------------------------
# Imports
#-----------------------------------------------------------------------------
MinRK
fix markdown images...
r12451 from IPython.config import Config
Jonathan Frederic
Cleanup and refactor of API, almost complete....
r10677 from IPython.utils.traitlets import Unicode
Brian E. Granger
Fixing import for nbconvert.
r11089 from .exporter import Exporter
Jonathan Frederic
Finished a rough draft of the exporters.
r10588
#-----------------------------------------------------------------------------
# Classes
#-----------------------------------------------------------------------------
Brian E. Granger
Fixing import for nbconvert.
r11089 class MarkdownExporter(Exporter):
Jonathan Frederic
Cleanup and refactor of API, almost complete....
r10677 """
Exports to a markdown document (.md)
"""
Jonathan Frederic
Fixed all broken references, refactored some stuff here and there,...
r10624 file_extension = Unicode(
'md', config=True,
help="Extension of the file that should be written to disk")
MinRK
fix markdown images...
r12451
@property
def default_config(self):
c = Config({'ExtractOutputPreprocessor':{'enabled':True}})
c.merge(super(MarkdownExporter,self).default_config)
return c