Browse Source

Use an actual registered MIME type (cosmetic).

pull/183/head
Tamás K. Papp 4 years ago
parent
commit
d587d1af09
  1. 4
      test/runtests.jl

4
test/runtests.jl

@ -844,11 +844,11 @@ end end
# fredrikekre/Literate.jl#182 # fredrikekre/Literate.jl#182
write(inputfile, """ write(inputfile, """
struct SVG end 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() SVG()
""") """)
Literate.markdown(inputfile, outdir; execute=true, 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) markdown = read(joinpath(outdir, "inputfile.md"), String)
@test occursin(r"!\[\]\(\d+\.svg\)", markdown) # image/svg @test occursin(r"!\[\]\(\d+\.svg\)", markdown) # image/svg
end end

Loading…
Cancel
Save