aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/conversion_tests.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py
index b28fe25..e920551 100644
--- a/tests/conversion_tests.py
+++ b/tests/conversion_tests.py
@@ -258,6 +258,16 @@ def can_define_custom_conversion_for_images():
assert_equal('<img alt="abc" />', result.value)
+@istest
+def footnote_reference_is_converted_to_superscript_intra_page_link():
+ footnote_reference = documents.footnote_reference("4")
+ result = convert_document_element_to_html(
+ footnote_reference,
+ generate_uniquifier=lambda: 42
+ )
+ assert_equal('<sup><a href="#footnote-42-4" id="footnote-ref-42-4">[1]</a></sup>', result.value)
+
+
def _paragraph_with_text(text):
return documents.paragraph(children=[_run_with_text(text)])