Function: org-man-export

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

Signature

(org-man-export LINK DESCRIPTION BACKEND)

Documentation

Export a man page LINK with DESCRIPTION.

BACKEND is the current export backend.

This function has :around advice: org-man-export@gitman.

Source Code

;; Defined in /usr/src/emacs/lisp/org/ol-man.el.gz
(defun org-man-export (link description backend)
  "Export a man page LINK with DESCRIPTION.
BACKEND is the current export backend."
  (let ((path (format "http://man.he.net/?topic=%s&section=all" link))
	(desc (or description link)))
    (cond
     ((eq backend 'html) (format "<a target=\"_blank\" href=\"%s\">%s</a>" path desc))
     ((eq backend 'latex) (format "\\href{%s}{%s}" path desc))
     ((eq backend 'texinfo) (format "@uref{%s,%s}" path desc))
     ((eq backend 'ascii) (format "[%s] (<%s>)" desc path))
     ((eq backend 'md) (format "[%s](%s)" desc path))
     (t path))))