Function: markdown--first-displayable
markdown--first-displayable is a byte-compiled function defined in
markdown-mode.el.
Signature
(markdown--first-displayable SEQ)
Documentation
Return the first displayable character or string in SEQ.
SEQ may be an atom or a sequence.
Source Code
;; Defined in ~/.emacs.d/elpa/markdown-mode-20260321.143/markdown-mode.el
(defun markdown--first-displayable (seq)
"Return the first displayable character or string in SEQ.
SEQ may be an atom or a sequence."
(let ((c (gethash seq markdown--first-displayable-cache t)))
(if (not (eq c t))
c
(puthash seq
(let ((seq (if (listp seq) seq (list seq))))
(cond ((stringp (car seq))
(cl-find-if
(lambda (str)
(and (mapcar #'char-displayable-p (string-to-list str))))
seq))
((characterp (car seq))
(cl-find-if #'char-displayable-p seq))))
markdown--first-displayable-cache))))