Commit 42246142 by Don Mitchell

Numerical response now works and round tripping works.

parent 12abdbce
...@@ -135,6 +135,9 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor ...@@ -135,6 +135,9 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
// rid white space // rid white space
xml = xml.replace(/\n\n\n/g, '\n'); xml = xml.replace(/\n\n\n/g, '\n');
// surround w/ problem tag
xml = '<problem>\n' + xml + '\n</problem>';
return xml; return xml;
} }
......
...@@ -3,7 +3,8 @@ metadata: ...@@ -3,7 +3,8 @@ metadata:
display_name: Numerical Response display_name: Numerical Response
rerandomize: never rerandomize: never
showanswer: always showanswer: always
markdown: "A numerical response problem accepts a line of text input from the markdown: |
A numerical response problem accepts a line of text input from the
student, and evaluates the input for correctness based on its student, and evaluates the input for correctness based on its
numerical value. numerical value.
...@@ -18,7 +19,6 @@ metadata: ...@@ -18,7 +19,6 @@ metadata:
Enter the number of fingers on a human hand: Enter the number of fingers on a human hand:
= 5 = 5
"
data: | data: |
<problem> <problem>
<p> <p>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment