unfix link with a description to a headline
This commit is contained in:
@@ -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>`_" raw-path) ;; desc cannot be used w/o a :role:
|
||||||
(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.
|
||||||
|
|||||||
Reference in New Issue
Block a user