Skip to content

Commit 8edfa0c

Browse files
Add failing test for labeled footnotes
1 parent 0ad5eb8 commit 8edfa0c

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

test.el

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,16 @@
1111
(with-current-buffer "*Org HTML Export*" (buffer-string))))
1212
(org-html-markdown-style-footnotes-remove))
1313

14+
(ert-deftest labeled-footnote-test ()
15+
(org-html-markdown-style-footnotes-add)
16+
(find-file "test/fixtures/labeled-footnote.org")
17+
(let ((org-html-markdown-style-footnotes t))
18+
(org-html-export-as-html))
19+
(should (string-match-p
20+
"<ol>\n<li id=\"fn.labeled\" class=\"footdef\" role=\"doc-footnote\" tabindex=\"-\"><p class=\"footpara\">\nA footnote.\n</p>\n\n<p class=\"footpara\">\nWith a second paragraph.\n</p> <a href=\"#fnr.labeled\" role=\"doc-backlink\">↩&#65038;</a></li>\n</ol>"
21+
(with-current-buffer "*Org HTML Export*" (buffer-string))))
22+
(org-html-markdown-style-footnotes-remove))
23+
1424
(ert-deftest disabled-test ()
1525
(org-html-markdown-style-footnotes-add)
1626
(find-file "test/fixtures/footnote.org")

0 commit comments

Comments
 (0)