branch: externals/org
commit f397abcc4ed41db55e0881cbcdb8a1ad3221cfe2
Author: Ihor Radchenko <yanta...@posteo.net>
Commit: Ihor Radchenko <yanta...@posteo.net>

    org-html-link: Fix links to radio targets when 
`org-html-prefer-user-labels' is t
    
    * lisp/ox-html.el (org-html-link): Use ox-html-specific
    `org-html--reference' to get references.
    
    Reported-by: Gregor Zattler <telegr...@gmx.net>
    Link: https://orgmode.org/list/874iuswbx2....@no.lan
---
 lisp/ox-html.el | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lisp/ox-html.el b/lisp/ox-html.el
index be66f6bb3e..818bb127cd 100644
--- a/lisp/ox-html.el
+++ b/lisp/ox-html.el
@@ -3376,7 +3376,7 @@ INFO is a plist holding contextual information.  See
       (let ((destination (org-export-resolve-radio-link link info)))
        (if (not destination) desc
          (format "<a href=\"#%s\"%s>%s</a>"
-                 (org-export-get-reference destination info)
+                 (org-html--reference destination info)
                  attributes
                  desc))))
      ;; Links pointing to a headline: Find destination and build

Reply via email to