Skip to content

Commit 502af43

Browse files
author
Jürgen Hasch
committed
Address comments in code review
1 parent 9f54d50 commit 502af43

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

docs/source/exporting.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ Converting linked SVG to PDF
4848
Embedding images in notebooks
4949
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
5050

51-
.. autoclass:: EmbedPreprocessor
51+
.. autoclass:: EmbedImagesPreprocessor
5252

5353

5454
Postprocessors

src/jupyter_contrib_nbextensions/nbconvert_support/pre_embedimages.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ def replfunc_md(self, match):
115115
if self.embed_remote_images:
116116
data = urlopen(url).read()
117117
else:
118-
return match.string
118+
return match.group(0)
119119
elif url.startswith('attachment'):
120-
return match.string
120+
return match.group(0)
121121
else:
122122
filename = os.path.join(self.path, url)
123123
with open(filename, 'rb') as f:

0 commit comments

Comments
 (0)