Merge branch 'feature/cas/speed-editor' of github.com:MITx/mitx into feature/cas/speed-editor

This commit is contained in:
cahrens
2013-01-07 12:01:54 -05:00
2 changed files with 5 additions and 2 deletions

View File

@@ -147,6 +147,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;
} }

View File

@@ -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:
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>