Function: org-info-export

org-info-export is a byte-compiled function defined in ol-info.el.gz.

Signature

(org-info-export PATH DESC FORMAT)

Documentation

Export an info link.

See org-link-parameters for details about PATH, DESC and FORMAT.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-info.el.gz
(defun org-info-export (path desc format)
  "Export an info link.
See `org-link-parameters' for details about PATH, DESC and FORMAT."
  (pcase-let ((`(,manual . ,node) (org-info--link-file-node path)))
    (pcase format
      (`html
       (format "<a href=\"%s#%s\">%s</a>"
	       (org-info-map-html-url manual)
	       (org-info--expand-node-name node)
	       (or desc path)))
      (`texinfo
       (let ((title (or desc "")))
	 (format "@ref{%s,%s,,%s,}" node title manual)))
      (_ nil))))