Cheat sheet updated for header and explanation. Video removed.
This commit is contained in:
@@ -257,8 +257,6 @@ describe 'MarkdownEditingDescriptor', ->
|
||||
[(] distractor
|
||||
[] no space
|
||||
|
||||
{{video abcd1s}}
|
||||
|
||||
Option with multiple correct ones
|
||||
[[one option, (correct one), (should not be correct)]]
|
||||
|
||||
@@ -312,8 +310,6 @@ describe 'MarkdownEditingDescriptor', ->
|
||||
</choicegroup>
|
||||
</multiplechoiceresponse>
|
||||
|
||||
<video youtube="1.0:abcd1s" />
|
||||
|
||||
<p>Option with multiple correct ones</p>
|
||||
|
||||
<optionresponse>
|
||||
|
||||
@@ -165,7 +165,7 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
|
||||
else
|
||||
return template
|
||||
|
||||
# We may wish to add insertHeader and insertVideo. Here is Tom's code.
|
||||
# We may wish to add insertHeader. Here is Tom's code.
|
||||
# function makeHeader() {
|
||||
# var selection = simpleEditor.getSelection();
|
||||
# var revisedSelection = selection + '\n';
|
||||
@@ -174,11 +174,6 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
|
||||
# }
|
||||
# simpleEditor.replaceSelection(revisedSelection);
|
||||
#}
|
||||
#
|
||||
#function makeVideo() {
|
||||
#var selection = simpleEditor.getSelection();
|
||||
#simpleEditor.replaceSelection('{{video ' + selection + '}}');
|
||||
#}
|
||||
#
|
||||
@markdownToXml: (markdown)->
|
||||
toXml = `function(markdown) {
|
||||
@@ -222,9 +217,6 @@ class @MarkdownEditingDescriptor extends XModule.Descriptor
|
||||
return groupString;
|
||||
});
|
||||
|
||||
// replace videos
|
||||
xml = xml.replace(/\{\{video\s(.*?)\}\}/g, '<video youtube="1.0:$1" />\n\n');
|
||||
|
||||
// replace string and numerical
|
||||
xml = xml.replace(/^\=\s*(.*?$)/gm, function(match, p) {
|
||||
var string;
|
||||
|
||||
Reference in New Issue
Block a user