Skip to content

Commit

Permalink
urlencode images for rst files
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanov committed Mar 20, 2014
1 parent 3da318c commit 4d79291
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion IPython/nbconvert/filters/markdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def markdown2html_marked(source, encoding='utf-8'):
return out.rstrip('\n')

def markdown2rst(source):
"""Convert a markdown string to LaTeX via pandoc.
"""Convert a markdown string to ReST via pandoc.
This function will raise an error if pandoc is not installed.
Any error messages generated by pandoc are printed to stderr.
Expand Down
6 changes: 3 additions & 3 deletions IPython/nbconvert/templates/rst.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -38,15 +38,15 @@
{% endblock stream %}

{% block data_svg %}
.. image:: {{ output.svg_filename }}
.. image:: {{ output.svg_filename|urlencode }}
{% endblock data_svg %}

{% block data_png %}
.. image:: {{ output.png_filename }}
.. image:: {{ output.png_filename|urlencode }}
{% endblock data_png %}

{% block data_jpg %}
.. image:: {{ output.jpeg_filename }}
.. image:: {{ output.jpeg_filename|urlencode }}
{% endblock data_jpg %}

{% block data_latex %}
Expand Down

0 comments on commit 4d79291

Please sign in to comment.