From d587d1af09807feb2ffacb44d491ac54f57f5ebc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tam=C3=A1s=20K=2E=20Papp?= Date: Mon, 17 Jan 2022 16:39:50 +0100 Subject: [PATCH] Use an actual registered MIME type (cosmetic). --- test/runtests.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/runtests.jl b/test/runtests.jl index 64c5ebe..94bdb99 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -844,11 +844,11 @@ end end # fredrikekre/Literate.jl#182 write(inputfile, """ struct SVG end - Base.show(io::IO, mime::MIME"image/svg", ::SVG) = print(io, "SVG") + Base.show(io::IO, mime::MIME"image/svg+xml", ::SVG) = print(io, "SVG") SVG() """) Literate.markdown(inputfile, outdir; execute=true, - config = Dict("mime_extensions" => [(MIME("image/svg"), ".svg")])) + config = Dict("mime_extensions" => [(MIME("image/svg+xml"), ".svg")])) markdown = read(joinpath(outdir, "inputfile.md"), String) @test occursin(r"!\[\]\(\d+\.svg\)", markdown) # image/svg end