diff options
| author | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:54:29 +0100 |
|---|---|---|
| committer | Michael Williamson <mike@zwobble.org> | 2015-06-17 15:54:29 +0100 |
| commit | cd2a10d64f6f2a1a42c1a3f0c144a3a521083cd8 (patch) | |
| tree | a251f341d5181ef347636e4d5ab3657782d8367b /tests/conversion_tests.py | |
| parent | 3bfa77d64e69d20609c8321a067bfa2651a7eabc (diff) | |
Allow strikethrough to be configured in style mapping
Diffstat (limited to 'tests/conversion_tests.py')
| -rw-r--r-- | tests/conversion_tests.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/conversion_tests.py b/tests/conversion_tests.py index 1563131..23e61d4 100644 --- a/tests/conversion_tests.py +++ b/tests/conversion_tests.py @@ -211,6 +211,17 @@ def strikethrough_runs_are_wrapped_in_s_elements_by_default(): @istest +def strikethrough_runs_can_be_configured_with_style_mapping(): + result = convert_document_element_to_html( + documents.run(children=[documents.text("Hello")], is_strikethrough=True), + style_map=[ + style_reader.read_style("strike => del") + ] + ) + assert_equal("<del>Hello</del>", result.value) + + +@istest def superscript_runs_are_wrapped_in_sup_tags(): result = convert_document_element_to_html( documents.run( |
