Function: org-export-inline-image-p
org-export-inline-image-p is a byte-compiled function defined in
ox.el.gz.
Signature
(org-export-inline-image-p LINK &optional RULES)
Documentation
Non-nil if LINK object points to an inline image.
Optional argument is a set of RULES defining inline images. It is an alist where associations have the following shape:
(TYPE . REGEXP)
Applying a rule means apply REGEXP against LINK's path when its
type is TYPE. The function will return a non-nil value if any of
the provided rules is non-nil. The default rule is
org-export-default-inline-image-rule.
This only applies to links without a description.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export-inline-image-p (link &optional rules)
"Non-nil if LINK object points to an inline image.
Optional argument is a set of RULES defining inline images. It
is an alist where associations have the following shape:
(TYPE . REGEXP)
Applying a rule means apply REGEXP against LINK's path when its
type is TYPE. The function will return a non-nil value if any of
the provided rules is non-nil. The default rule is
`org-export-default-inline-image-rule'.
This only applies to links without a description."
(and (not (org-element-contents link))
(let ((case-fold-search t))
(cl-some (lambda (rule)
(and (string= (org-element-property :type link) (car rule))
(string-match-p (cdr rule)
(org-element-property :path link))))
(or rules org-export-default-inline-image-rule)))))