summaryrefslogtreecommitdiff
path: root/yaksh/views.py
diff options
context:
space:
mode:
authoradityacp2020-08-27 18:04:01 +0530
committeradityacp2020-08-27 18:04:01 +0530
commit4183028cc7005cd46c8ccff2793030d736e232d7 (patch)
tree7dd59ede307057c4530677bad8903c7c63d307f3 /yaksh/views.py
parentd54b62c2803f0f0edb45348f47d6a541ca09e022 (diff)
parent2fbc43b83fd1a487d4e27b471efa2faeed5c4669 (diff)
downloadonline_test-4183028cc7005cd46c8ccff2793030d736e232d7.tar.gz
online_test-4183028cc7005cd46c8ccff2793030d736e232d7.tar.bz2
online_test-4183028cc7005cd46c8ccff2793030d736e232d7.zip
Resolve conflicts
Diffstat (limited to 'yaksh/views.py')
-rw-r--r--yaksh/views.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/yaksh/views.py b/yaksh/views.py
index 495dbe2..668a88c 100644
--- a/yaksh/views.py
+++ b/yaksh/views.py
@@ -23,7 +23,7 @@ from django.urls import reverse
import json
from textwrap import dedent
import zipfile
-from markdown import Markdown
+import markdown
try:
from StringIO import StringIO as string_io
except ImportError:
@@ -101,7 +101,9 @@ CSV_FIELDS = ['name', 'username', 'roll_number', 'institute', 'department',
def get_html_text(md_text):
"""Takes markdown text and converts it to html"""
- return Markdown().convert(md_text)
+ return markdown.markdown(
+ md_text, extensions=['tables', 'fenced_code']
+ )
def formfield_callback(field):