diff --git a/Project.toml b/Project.toml index 8de97fb0e1..a52d96666e 100644 --- a/Project.toml +++ b/Project.toml @@ -2,7 +2,7 @@ name = "Pluto" uuid = "c3e4b0f8-55cb-11ea-2926-15256bba5781" license = "MIT" authors = ["Fons van der Plas ", "MikoĊ‚aj Bochenski "] -version = "0.10.5" +version = "0.10.6" [deps] Base64 = "2a0f44e3-6c83-55bd-87e4-b1978d98bd5f" diff --git a/src/runner/PlutoRunner.jl b/src/runner/PlutoRunner.jl index f345b406fd..99ecf18082 100644 --- a/src/runner/PlutoRunner.jl +++ b/src/runner/PlutoRunner.jl @@ -295,13 +295,13 @@ function show_richest(io::IO, @nospecialize(x); onlyhtml::Bool=false)::MIME withtag(io, :pre) do htmlesc(io, repr(mime, x; context=iocontext_compact)) end - elseif mime isa MIME"text/html" - show(io, mime, x) elseif mime isa MIME"text/latex" # LaTeXStrings prints $ at the start and end. # We strip those, since Markdown.LaTeX only contains the math content texed = repr(mime, x) html(io, LaTeX(strip(texed, '$'))) + else + show(io, mime, x) end return MIME"text/html"() else