diff --git a/src/PlutoTeachingTools.jl b/src/PlutoTeachingTools.jl index 6b32b90..45cb1b1 100644 --- a/src/PlutoTeachingTools.jl +++ b/src/PlutoTeachingTools.jl @@ -6,6 +6,7 @@ using Downloads: download # used in robustlocalresouce.jl using PlutoUI: Resource, LocalResource # used in robustlocalresouce.jl using PlutoUI: combine # used in footnotes.jl using PlutoUI: Select # used in i8n/i8n.jl +using PlutoUI: details # used in present.jl for Foldable using Latexify: latexify # used in latex.jl using PlutoLinks: @ingredients diff --git a/src/present.jl b/src/present.jl index 0a09e17..4f23377 100644 --- a/src/present.jl +++ b/src/present.jl @@ -6,17 +6,8 @@ function present_button(lang::AbstractLanguage=default_language[]) htl"" end -struct Foldable{C} - title::String - content::C -end +Foldable(title, content) = details(title, content) -function Base.show(io, mime::MIME"text/html", fld::Foldable) - write(io, "
$(fld.title)

") - show(io, mime, fld.content) - write(io, "

") - return nothing -end struct TwoColumn{L,R} left::L