Commit 53ea7e808a0f285fd34c6c3db1e7ebbb157e5e21
1 parent
77357c9e
Exists in
master
and in
1 other branch
- removed 2nd argument from md and md_to_html
Showing
10 changed files
with
14 additions
and
14 deletions
Show diff stats
templates/question-alert.html
templates/question-checkbox.html
templates/question-information.html
templates/question-radio.html
templates/question-success.html
templates/question-warning.html
templates/question.html
templates/review-question-checkbox.html
... | ... | @@ -12,7 +12,7 @@ |
12 | 12 | <i class="fa fa-check-square-o" aria-hidden="true"></i> |
13 | 13 | </div> |
14 | 14 | <div class="p-2"> |
15 | - {{ md(opt, q) }} | |
15 | + {{ md(opt) }} | |
16 | 16 | </div> |
17 | 17 | <div class="ml-auto p-2"> |
18 | 18 | {% if q['correct'][n] > 0 %} |
... | ... | @@ -28,10 +28,10 @@ |
28 | 28 | |
29 | 29 | {% else %} |
30 | 30 | <div class="p-2"> |
31 | - <i class="fa fa-square-o" aria-hidden="true"></i> | |
31 | + <i class="fa fa-square-o" aria-hidden="true"></i> | |
32 | 32 | </div> |
33 | 33 | <div class="p-2"> |
34 | - {{ md(opt, q) }} | |
34 | + {{ md(opt) }} | |
35 | 35 | </div> |
36 | 36 | <div class="ml-auto p-2"> |
37 | 37 | {% if q['correct'][n] > 0 %} | ... | ... |
templates/review-question-radio.html
... | ... | @@ -12,13 +12,13 @@ |
12 | 12 | <i class="fa fa-dot-circle-o" aria-hidden="true"></i> |
13 | 13 | </div> |
14 | 14 | <div class="p-2"> |
15 | - {{ md(opt, q) }} | |
15 | + {{ md(opt) }} | |
16 | 16 | </div> |
17 | 17 | <div class="ml-auto p-2"> |
18 | 18 | {% if q['correct'][n] > 0 %} |
19 | 19 | <div class="text-right text-success"> |
20 | 20 | <i class="fa fa-check" aria-hidden="true"></i> |
21 | - </div> | |
21 | + </div> | |
22 | 22 | {% else %} |
23 | 23 | <div class="text-right text-danger"> |
24 | 24 | <i class="fa fa-close" aria-hidden="true"></i> |
... | ... | @@ -31,7 +31,7 @@ |
31 | 31 | <i class="fa fa-circle-o" aria-hidden="true"></i> |
32 | 32 | </div> |
33 | 33 | <div class="p-2"> |
34 | - {{ md(opt, q) }} | |
34 | + {{ md(opt) }} | |
35 | 35 | </div> |
36 | 36 | <div class="ml-auto p-2"> |
37 | 37 | {% if q['correct'][n] > 0 %} | ... | ... |
tools.py
... | ... | @@ -126,7 +126,7 @@ class HighlightRenderer(mistune.Renderer): |
126 | 126 | |
127 | 127 | markdown = MarkdownWithMath(HighlightRenderer(escape=True)) # hard_wrap=True to insert <br> on newline |
128 | 128 | |
129 | -def md_to_html(text, q=None): | |
129 | +def md_to_html(text): | |
130 | 130 | return markdown(text) |
131 | 131 | |
132 | 132 | # --------------------------------------------------------------------------- | ... | ... |