Fix svg image display

This commit is contained in:
Nathaniel Nicandro 2018-10-04 18:31:44 -05:00
parent 39382227e7
commit 3145453d93

View file

@ -614,7 +614,7 @@ When no valid mimetype is present in DATA, a warning is shown."
(cl-destructuring-bind (&key width height)
(plist-get metadata :image/svg+xml)
(let* ((data (plist-get data :image/svg+xml))
(img (create-image data 'svg nil :width width :height height)))
(img (create-image data 'svg 'data :width width :height height)))
(insert-image img (propertize " " 'read-only t)))))
((memq :text/plain mimetypes)
(jupyter-repl-insert-ansi-coded-text