Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit 33632af

Browse files
committed
Fixed mchoice nested parse issue
1 parent 5cb7e5f commit 33632af

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

runestone/assess/js/mchoice.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ MultipleChoice.prototype.createMCForm = function () {
148148

149149
MultipleChoice.prototype.renderMCContainer = function () {
150150
this.containerDiv = document.createElement("div");
151-
$(this.containerDiv).text(this.question);
151+
$(this.containerDiv).html(this.question);
152152
$(this.containerDiv).addClass("alert alert-warning");
153153
this.containerDiv.id = this.divid;
154154
};

runestone/assess/multiplechoice.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ def run(self):
123123
...
124124
"""
125125
TEMPLATE_START = '''
126-
<ul data-component="multiplechoice" data-multipleanswers="%(multipleAnswers)s" %(random)s id="%(divid)s">%(bodytext)s
126+
<ul data-component="multiplechoice" data-multipleanswers="%(multipleAnswers)s" %(random)s id="%(divid)s">
127127
'''
128128

129129
OPTION = '''
@@ -146,7 +146,7 @@ def run(self):
146146
mcNode.template_option = OPTION
147147
mcNode.template_end = TEMPLATE_END
148148

149-
#self.state.nested_parse(self.content, self.content_offset, mcNode)
149+
self.state.nested_parse(self.content, self.content_offset, mcNode)
150150
return [mcNode]
151151

152152
#backwards compatibility

0 commit comments

Comments
 (0)