Closed melonedo closed 2 years ago
Since when is it deprecated?
If it's a Text
type, it seems like a bug in Pluto to display it as markdown, since
julia> showable("text/markdown", Docs.Text("foo"))
false
It should be showing it as text/plain
.
https://github.com/JuliaLang/julia/commit/86639e1abae97a7f46e8daa9ec83466865c854f4 It is deprecated since 1.7.
Docs.Text
will continue to work.)show
method for text/plain
but not for text/markdown
), so why bother?I think you are right, another type won't fix the issue about Pluto. Nevertheless it is better to avoid deprecated interfaces.
Closing this as it's not an issue in Julia 1.x, and the only alternative would to be to re-implement Docs.Text
.
See also JuliaLang/julia#43532.
https://github.com/JuliaPy/PyCall.jl/blob/e3e3008ee1b3e449c6382293f58a1f85384beea6/src/PyCall.jl#L260-L268 Docstring for python objects have the type
Base.Docs.Text{String}
, which has been deprecated. Since python documentation is usually in RST format, maybe we could create a type for that?This has caused trouble in Pluto when displaying documentation in the help panel.