diff options
| author | SavagePeanut <sourcehut@lazytapir.com> | 2023-08-24 16:09:16 -0500 |
|---|---|---|
| committer | SavagePeanut <sourcehut@lazytapir.com> | 2023-08-24 16:09:16 -0500 |
| commit | 2a88ed30e27f25bed0b72bf5b31aa59b83f2b1d7 (patch) | |
| tree | 87af3a2cc3fcbe4813d73b454616e81fac0438d7 /tests | |
| parent | 19a087d08d6024a59ad943bfee3086a6710b9278 (diff) | |
fix codeblocks, again
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/test_style_parser.py | 4 |
1 files changed, 4 insertions, 0 deletions
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 = "<pre><code class=\"language-python\">hacker code</code></pre>" assert(format_body(test, MATRIX_FORMATS) == formatted_body) + test = "```python\nhacker code\n```\nnormal text" + formatted_body = "<pre><code class=\"language-python\">hacker code</code></pre><br>normal text" + assert(format_body(test, MATRIX_FORMATS) == formatted_body) + test = ">```java\n>why are you quoting a code block\n>```" formatted_body = "<blockquote><pre><code class=\"language-java\">why are you quoting a code block</code></pre></blockquote>" assert(format_body(test, MATRIX_FORMATS) == formatted_body) |
