summaryrefslogtreecommitdiff
path: root/tests/test_matrix.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_matrix.py')
-rw-r--r--tests/test_matrix.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_matrix.py b/tests/test_matrix.py
index be33973..7dbafdc 100644
--- a/tests/test_matrix.py
+++ b/tests/test_matrix.py
@@ -227,6 +227,10 @@ def test_assorted():
formatted_body = "<em>underline</em> <strong>bold</strong> <strike>strikethrough</strike> >not quote <span data-mx-spoiler>spoiler</span><br><blockquote>quote</blockquote><br>nothing<br>nothing<br><blockquote><blockquote><blockquote><blockquote>another quote with <span data-mx-spoiler><strike><em><strong>```four```</strong></em></strike></span></blockquote></blockquote></blockquote></blockquote>"
assert(format_for_matrix(test) == formatted_body)
+ test = "```\nhacker\ncode\n```\n\n```\nhacker\ncode\n```"
+ formatted_body = "<pre><code>hacker\ncode</code></pre><br><br><pre><code>hacker\ncode</code></pre>"
+ assert(format_for_matrix(test) == formatted_body)
+
test = ">```\n>do be do be dooo ba do be do be do ba\n>>>"
formatted_body = "<blockquote><pre><code>do be do be dooo ba do be do be do ba\n>></code></pre></blockquote>"
assert(format_for_matrix(test) == formatted_body)