File tree Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Expand file tree Collapse file tree 1 file changed +27
-0
lines changed Original file line number Diff line number Diff line change @@ -462,6 +462,19 @@ macro show_special(io, O)
462462 end )
463463end
464464
465+ macro show_special (io, mime, O)
466+ return :( begin
467+ local i = $ (esc (io))
468+ local m = $ (esc (mime))
469+ local o = $ (esc (O))
470+ s = get_attribute (o, :show )
471+ if s != = nothing
472+ s (i, m, o)
473+ return
474+ end
475+ end )
476+ end
477+
465478macro show_special_elem (io, e)
466479 return :( begin
467480 local i = $ (esc (io))
@@ -475,6 +488,20 @@ macro show_special_elem(io, e)
475488 end )
476489end
477490
491+ macro show_special_elem (io, mime, e)
492+ return :( begin
493+ local i = $ (esc (io))
494+ local m = $ (esc (mime))
495+ local a = $ (esc (e))
496+ local o = parent (a)
497+ s = get_attribute (o, :show_elem )
498+ if s != = nothing
499+ s (i, m, a)
500+ return
501+ end
502+ end )
503+ end
504+
478505# ##############################################################################
479506# generic fall back if no immediate coercion is possible
480507# can/ should be called for more generic general coercion mechanisms
You can’t perform that action at this time.
0 commit comments