Set extra mine only when HTML format

Extra mine is not used by other format
This commit is contained in:
Jks Liu 2020-12-04 23:41:36 +08:00
parent 02008284aa
commit 4b0d69b6a4

View File

@ -54,9 +54,9 @@ function _ijulia_display_dict(plt::Plot)
elseif output_type == :html elseif output_type == :html
mime = "text/html" mime = "text/html"
out[mime] = sprint(show, MIME(mime), plt) out[mime] = sprint(show, MIME(mime), plt)
_ijulia__extra_mime_info!(plt, out)
else else
error("Unsupported output type $output_type") error("Unsupported output type $output_type")
end end
_ijulia__extra_mime_info!(plt, out)
out out
end end