Function: org-texinfo--text-markup
org-texinfo--text-markup is a byte-compiled function defined in
ox-texinfo.el.gz.
Signature
(org-texinfo--text-markup TEXT MARKUP INFO)
Documentation
Format TEXT depending on MARKUP text markup.
INFO is a plist used as a communication channel. See
org-texinfo-text-markup-alist for details.
Source Code
;; Defined in /usr/src/emacs/lisp/org/ox-texinfo.el.gz
(defun org-texinfo--text-markup (text markup _info)
"Format TEXT depending on MARKUP text markup.
INFO is a plist used as a communication channel. See
`org-texinfo-text-markup-alist' for details."
(pcase (cdr (assq markup org-texinfo-text-markup-alist))
(`nil text) ;no markup: return raw text
(`code (format "@code{%s}" (org-texinfo--sanitize-content text)))
(`samp (format "@samp{%s}" (org-texinfo--sanitize-content text)))
(`verb
(let ((separator (org-texinfo--find-verb-separator text)))
(format "@verb{%s%s%s}" separator text separator)))
;; Else use format string.
(fmt (format fmt text))))