diff --git a/lisp/ox-rst/ox-rst.el b/lisp/ox-rst/ox-rst.el index 8211cddf..9a547b36 100644 --- a/lisp/ox-rst/ox-rst.el +++ b/lisp/ox-rst/ox-rst.el @@ -1267,7 +1267,8 @@ INFO is a plist holding contextual information." (if (plist-get info :rst-link-use-ref-role) (if desc (format " :ref:`%s <%s>`" desc raw-path) (format " :ref:`%s`" raw-path)) - (format "`%s`_" raw-path)) + (if desc (format "`%s <%s>`" desc raw-path) + (format "`%s`_" raw-path))) (format "`%s`_" (org-rst--build-title destination info nil)))) ;; Fuzzy link points to a target. (otherwise