Merge pull request #7893 from Carreau/add-markdown-menu

Add Markdown to the list of downloadable nbconverted formats.
This commit is contained in:
Matthias Bussonnier 2015-02-28 10:15:12 -08:00
commit de90843b29
2 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,10 @@ define([
that._nbconvert('html', true);
});
this.element.find('#download_markdown').click(function () {
that._nbconvert('markdown', true);
});
this.element.find('#download_rst').click(function () {
that._nbconvert('rst', true);
});

View File

@ -106,6 +106,7 @@ data-notebook-path="{{notebook_path}}"
<li id="download_ipynb"><a href="#">IPython Notebook (.ipynb)</a></li>
<li id="download_script"><a href="#">Script</a></li>
<li id="download_html"><a href="#">HTML (.html)</a></li>
<li id="download_markdown"><a href="#">Markdown (.md)</a></li>
<li id="download_rst"><a href="#">reST (.rst)</a></li>
<li id="download_pdf"><a href="#">PDF (.pdf)</a></li>
</ul>