5
CodeMirror.defineMode("markdown_with_stex", function(){
6
var inner = CodeMirror.getMode({}, "stex");
7
var outer = CodeMirror.getMode({}, "markdown");
17
return CodeMirror.multiplexingMode(outer, innerOptions);
20
var mode = CodeMirror.getMode({}, "markdown_with_stex");
26
Array.prototype.slice.call(arguments, 1),
32
"[strong **Equation:**] [delim&delim-open $][inner&tag \\pi][delim&delim-close $]");
34
CodeMirror.defineMode("identical_delim_multiplex", function() {
35
return CodeMirror.multiplexingMode(CodeMirror.getMode({indentUnit: 2}, "javascript"), {
38
mode: CodeMirror.getMode({}, "markdown"),
39
parseDelimiters: true,
44
var mode2 = CodeMirror.getMode({}, "identical_delim_multiplex");
46
test.mode("identical_delimiters_with_parseDelimiters", mode2, [
47
"[keyword let] [def x] [operator =] [q #foo][q&em *bar*][q #];"