fix link with a description to a headline

This commit is contained in:
2026-01-01 01:11:10 +01:00
parent 6897f1dc3d
commit b862ad204e

View File

@@ -1267,7 +1267,7 @@ INFO is a plist holding contextual information."
(if (plist-get info :rst-link-use-ref-role) (if (plist-get info :rst-link-use-ref-role)
(if desc (format " :ref:`%s <%s>`" desc raw-path) (if desc (format " :ref:`%s <%s>`" desc raw-path)
(format " :ref:`%s`" raw-path)) (format " :ref:`%s`" raw-path))
(if desc (format "`%s <%s>`" desc raw-path) (if desc (format "`%s <%s>`_" desc raw-path)
(format "`%s`_" raw-path))) (format "`%s`_" raw-path)))
(format "`%s`_" (org-rst--build-title destination info nil)))) (format "`%s`_" (org-rst--build-title destination info nil))))
;; Fuzzy link points to a target. ;; Fuzzy link points to a target.