You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+49-25Lines changed: 49 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -63,7 +63,7 @@ This results in footnotes with support for multiple paragraphs, that work withou
63
63
64
64
## Implementation
65
65
66
-
In [Org mode 9.6.5](https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-html.el?h=release_9.6.5#n1858), the `org-html-footnote-section` looks like this:
66
+
In [Org mode 9.7.34](https://cgit.git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-html.el?h=release_9.7.34#n1870) the `org-html-footnote-section` looks like this:
67
67
68
68
```emacs-lisp
69
69
(defun org-html-footnote-section (info)
@@ -80,13 +80,25 @@ INFO is a plist used as a communication channel."
80
80
(mapconcat
81
81
(lambda (definition)
82
82
(pcase definition
83
-
(`(,n ,_ ,def)
83
+
(`(,n ,label ,def)
84
+
;; Do not assign number labels as they appear in Org mode
85
+
;; - the footnotes are re-numbered by
86
+
;; `org-export-get-footnote-number'. If the label is not
@@ -102,12 +114,24 @@ INFO is a plist used as a communication channel."
102
114
The function returns nothing if there are no footnotes in the document, or uses the format set in `:html-footnotes-section` to print each footnote. The interesting part is executed for each footnote, and wraps each footnote in a `div` element with a link back to where the footnote is referenced from:
103
115
104
116
```emacs-lisp
117
+
;; Do not assign number labels as they appear in Org mode
118
+
;; - the footnotes are re-numbered by
119
+
;; `org-export-get-footnote-number'. If the label is not
0 commit comments