Function: org-export--expand-links

org-export--expand-links is a byte-compiled function defined in ox.el.gz.

Signature

(org-export--expand-links TREE INFO)

Documentation

Modify TREE, expanding link paths according to :expand-links in INFO.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ox.el.gz
(defun org-export--expand-links (tree info)
  "Modify TREE, expanding link paths according to `:expand-links' in INFO."
  (when (plist-get info :expand-links)
    (org-element-map tree 'link
      (lambda (link)
        (when (equal "file" (org-element-property :type link))
          (org-element-put-property
           link :path
           (substitute-env-in-file-name
            (org-element-property :path link)))))
      info nil nil 'with-affiliated)))