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: ox-html-markdown-style-footnotes.org
+16-4Lines changed: 16 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,7 @@ This results in footnotes with support for multiple paragraphs, that work withou
109
109
110
110
* Implementation
111
111
112
-
In [[https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-html.el?h=release_9.6.5#n1858][Org mode 9.6.5]], the ~org-html-footnote-section~ looks like this:
112
+
In [[https://cgit.git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-html.el?h=release_9.7.34#n1870][Org mode 9.7.34]] the ~org-html-footnote-section~ looks like this:
113
113
114
114
#+headers: :noweb yes
115
115
#+begin_src emacs-lisp
@@ -127,7 +127,7 @@ In [[https://git.savannah.gnu.org/cgit/emacs/org-mode.git/tree/lisp/ox-html.el?h
127
127
(mapconcat
128
128
(lambda (definition)
129
129
(pcase definition
130
-
(`(,n ,_ ,def)
130
+
(`(,n ,label ,def)
131
131
<<footnote-definitions>>)))
132
132
definitions
133
133
"\n"))))))
@@ -138,12 +138,24 @@ The interesting part is executed for each footnote, and wraps each footnote in a
138
138
139
139
#+name: footnote-definitions
140
140
#+begin_src emacs-lisp
141
+
;; Do not assign number labels as they appear in Org mode
142
+
;; - the footnotes are re-numbered by
143
+
;; `org-export-get-footnote-number'. If the label is not
0 commit comments