diff options
| author | Michael Williamson <mike@zwobble.org> | 2014-08-30 11:40:44 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2014-08-30 11:40:44 +0100 |
| commit | 5f86739e1b61306d716634d7657c6242bffd982a (patch) | |
| tree | 69bd127a0bc5f4a82759ece22692ff3aa74191d8 /tests/conversion_tests.py | |
| parent | 6ec6e3b4bb8b12ada9609af0bf0e6cd3775fdcef (diff) | |
Convert footnote references
Diffstat (limited to 'tests/conversion_tests.py')
| -rw-r--r-- | tests/conversion_tests.py | 10 |
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)]) |
