Open
Description
I want the following markdown code to work:
```python
if True:
print("hello")
```
I've added a custom ASKBOT_MARKDOWN_CLASS
to load fenced-code-blocks extension:
import markdown2
class Markdown(markdown2.Markdown):
def __init__(self, *args, **kwargs):
extras = kwargs.get('extras', list())
extras.extend([
'fenced-code-blocks'
])
kwargs['extras'] = extras
super().__init__(*args, **kwargs)
When writing the question with the above markdown, it does not show the preview correctly:
When I submit the question, it does render correctly on the first load:
However, when I refresh the page, the code loses newlines (and the syntax colors are oddly different):
Metadata
Metadata
Assignees
Labels
No labels