From 0fb81645aafb780116465e13758601ff1183e043 Mon Sep 17 00:00:00 2001 Message-Id: <0fb81645aafb780116465e13758601ff1183e043.1714117826.git.info@protesilaos.com> From: Protesilaos Stavrou Date: Fri, 26 Apr 2024 10:41:51 +0300 Subject: [PATCH 1/2] Use the label, if present, in footnote definition * lisp/ox-html.el (org-html-footnote-section): Account for a non-nil label value. --- lisp/ox-html.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lisp/ox-html.el b/lisp/ox-html.el index aa0f891..95ecb44 100644 --- a/lisp/ox-html.el +++ b/lisp/ox-html.el @@ -1896,7 +1896,9 @@ (defun org-html-footnote-section (info) (let ((inline? (not (org-element-map def org-element-all-elements #'identity nil t))) (anchor (org-html--anchor - (format "fn.%d" n) + (if label + (format "fn.%s" label) + (format "fn.%d" n)) n (format " class=\"footnum\" href=\"#fnr.%s\" role=\"doc-backlink\"" (or label n)) info)) -- 2.39.2