|
|
|
@ -148,6 +148,14 @@ def test_https_link_linkified(): |
|
|
|
assert '<a href="https://example.com">' in processed |
|
|
|
|
|
|
|
|
|
|
|
def test_mailto_link_linkified(): |
|
|
|
"""Ensure that writing an email results in a working mailto link.""" |
|
|
|
markdown = "My email is email@example.com." |
|
|
|
processed = convert_markdown_to_safe_html(markdown) |
|
|
|
|
|
|
|
assert '<a href="mailto:email@example.com">' in processed |
|
|
|
|
|
|
|
|
|
|
|
def test_link_with_path_linkified(): |
|
|
|
"""Ensure a link with a path results in a link.""" |
|
|
|
markdown = "So http://example.com/a/b_c_d/e too?" |
|
|
|
|