"""Test cases for BetterEm.""" from .. import util class TestEscapeAll(util.MdCase): """Test escaping cases.""" extension = [ 'pymdownx.escapeall' ] extension_configs = {} def test_html_special_char_lt(self): """Test `<`.""" self.check_markdown( r'\
foo',
'<pre>foo
'
)
def test_html_special_char_gt(self):
"""Test `>`."""
self.check_markdown(
r'foo',
'<span>foo
'
)
def test_html_special_char_amp(self):
"""Test `&`."""
self.check_markdown(
r'This \& that',
'This & that
'
)
def test_normal_escape(self):
"""Test normal escapes."""
self.check_markdown(
r'This & \that',
'This & that
'
)