Allow displaying svg format in Juno if :html_output_format is set to :auto

This commit is contained in:
Balázs Ferenc Mezei 2019-03-05 12:50:41 +00:00
parent 05fe220102
commit c901c0caac

View File

@ -250,7 +250,7 @@ function showjuno(io::IO, m, plt)
end
function _showjuno(io::IO, m::MIME"image/svg+xml", plt)
if Symbol(plt.attr[:html_output_format]) :svg
if !(plt.attr[:html_output_format] in (:auto, :svg))
throw(MethodError(show, (typeof(m), typeof(plt))))
else
_show(io, m, plt)