You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to automatically convert the repl-styled printing to html for Pluto?
my "hack" right now is to get the is_pluto context, and if true, enforce Base.stdout - but that is not super nice, potential, I could combine this with PlutoUI.with_terminal(), but it is not the nicest variant (but likely the most realistic one)
MWE
beginimport Base.show
using Term
struct MyTest endfunction Base.show(io::IO,obj::MyTest)
tprintln(io,"::hello-plain")
end
The text was updated successfully, but these errors were encountered:
Hi!
I get really beautiful REPL outputs from your package - thanks a ton!
Unfortunately, if I then show my
show(io,"text/plain",obj) [...] tprintln(io,"::bla")
in Pluto.jl - I get a garbelled mess:�[38;2;206;147;216m::hello�[39m�[38;2;239;83;80m-�[39mplain
is_pluto
context, and if true, enforce Base.stdout - but that is not super nice, potential, I could combine this withPlutoUI.with_terminal()
, but it is not the nicest variant (but likely the most realistic one)MWE
The text was updated successfully, but these errors were encountered: