Skip to content

Commit

Permalink
hack to handle pdf figures in notebook
Browse files Browse the repository at this point in the history
  • Loading branch information
aebrahim committed Feb 4, 2016
1 parent 3cf14f4 commit 4579724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions nbsphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,9 +96,9 @@
{{ insert_empty_lines(outputdata) }}
{{ outputdata.strip(\n) | indent }}
{%- elif datatype in ['image/svg+xml', 'image/png', 'image/jpeg'] %}
{%- elif datatype in ['image/svg+xml', 'image/png', 'image/jpeg', 'application/pdf'] %}
.. image:: {{ output.metadata.filenames[datatype] | posix_path }}
.. image:: {{ output.metadata.filenames[datatype].rsplit('.', 1)[0] + '.*' | posix_path }}
{%- elif datatype in ['text/markdown'] %}
{{ output.data['text/markdown'] | markdown2rst | indent }}
Expand Down

0 comments on commit 4579724

Please sign in to comment.