Fix XMPP link export for LaTeX

This commit is contained in:
contrapunctus 2022-02-12 16:08:02 +05:30
parent 2962f8b669
commit 171bd11cef
1 changed files with 3 additions and 2 deletions

View File

@ -4039,8 +4039,9 @@ https://lists.gnu.org/archive/html/emacs-orgmode/2018-02/msg00082.html
((eq format 'html)
(format "<a href=\"%s\">%s</a>" link desc))
((eq format 'latex)
;; (format "\\href{%s}{%s}" link desc)
(format "\\url{%s}" link))
(if desc
(format "\\href{%s}{%s}" link desc)
(format "\\href{%s}" link)))
(t ;; `ascii', `md', `hugo', etc.
(format "[%s](%s)" desc link))))
#+END_SRC