Function: cider--render-rich-content-inline
cider--render-rich-content-inline is a byte-compiled function defined
in cider-eval.el.
Signature
(cider--render-rich-content-inline BODY CONTENT-TYPE POINT)
Documentation
Render BODY of CONTENT-TYPE in a result overlay at POINT, if possible.
Only directly displayable content (images) is rendered inline; return nil otherwise, so the caller falls back to a plain display.
Source Code
;; Defined in ~/.emacs.d/elpa/cider-20260822.1520/cider-eval.el
(defun cider--render-rich-content-inline (body content-type point)
"Render BODY of CONTENT-TYPE in a result overlay at POINT, if possible.
Only directly displayable content (images) is rendered inline; return nil
otherwise, so the caller falls back to a plain display."
(when-let* ((image-type (cdr (assoc (car content-type)
cider--image-content-types))))
(when (and point
(display-images-p)
(memq (cider--eval-result-display) '(overlay both)))
(cider--make-result-overlay (propertize " " 'display
(create-image body image-type t))
:where point
:duration cider-eval-result-duration
:prepend-face 'cider-result-overlay-face)
(message "%s#content[%s]" cider-eval-result-prefix (car content-type))
t)))