mirror of
https://github.com/django-helpdesk/django-helpdesk.git
synced 2025-08-19 04:06:23 +02:00
Fix. Fix problem wich version package in requirements and add test markdown and rewrite for new markdown
This commit is contained in:
@@ -20,14 +20,14 @@ class MarkDown(SimpleTestCase):
|
||||
self.assertEqual(output_value, expected_value)
|
||||
|
||||
def test_markdown_fenced_code(self):
|
||||
expected_value = '<h1>Title</h1>\n<pre><code class="python"># import os\n</code></pre>'
|
||||
expected_value = '<h1>Title</h1>\n<pre><code class="language-python"># import os\n</code></pre>'
|
||||
input_value = """
|
||||
# Title
|
||||
|
||||
```python
|
||||
# import os
|
||||
```
|
||||
"""
|
||||
"""
|
||||
output_value = get_markdown(input_value)
|
||||
self.assertEqual(output_value, expected_value)
|
||||
|
||||
|
Reference in New Issue
Block a user