From dd23ce9959826bc5cc6b629107ae6b4435d728a7 Mon Sep 17 00:00:00 2001 From: Fons van der Plas Date: Tue, 14 Jul 2020 18:32:24 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=B3=20Tree=20viewer=20fix?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Project.toml | 2 +- src/runner/PlutoRunner.jl | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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