From 2a88ed30e27f25bed0b72bf5b31aa59b83f2b1d7 Mon Sep 17 00:00:00 2001 From: SavagePeanut Date: Thu, 24 Aug 2023 16:09:16 -0500 Subject: fix codeblocks, again --- tests/test_style_parser.py | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'tests') diff --git a/tests/test_style_parser.py b/tests/test_style_parser.py index 86a7eff..8f39580 100644 --- a/tests/test_style_parser.py +++ b/tests/test_style_parser.py @@ -90,6 +90,10 @@ def test_code_blocks(): formatted_body = "
hacker code
" assert(format_body(test, MATRIX_FORMATS) == formatted_body) + test = "```python\nhacker code\n```\nnormal text" + formatted_body = "
hacker code

normal text" + assert(format_body(test, MATRIX_FORMATS) == formatted_body) + test = ">```java\n>why are you quoting a code block\n>```" formatted_body = "
why are you quoting a code block
" assert(format_body(test, MATRIX_FORMATS) == formatted_body) -- cgit v1.2.3