Sha256: a22aecbdc39634437e6cbba62a92fe88b46b33e5cd468bb225a38f48c443ecec

Contents?: true

Size: 810 Bytes

Versions: 50

Compression:

Stored size: 810 Bytes

Contents

// CodeMirror, copyright (c) by Marijn Haverbeke and others
// Distributed under an MIT license: http://codemirror.net/LICENSE

(function() {
  CodeMirror.defineMode("markdown_with_stex", function(){
    var inner = CodeMirror.getMode({}, "stex");
    var outer = CodeMirror.getMode({}, "markdown");

    var innerOptions = {
      open: '$',
      close: '$',
      mode: inner,
      delimStyle: 'delim',
      innerStyle: 'inner'
    };

    return CodeMirror.multiplexingMode(outer, innerOptions);
  });

  var mode = CodeMirror.getMode({}, "markdown_with_stex");

  function MT(name) {
    test.mode(
      name,
      mode,
      Array.prototype.slice.call(arguments, 1),
      'multiplexing');
  }

  MT(
    "stexInsideMarkdown",
    "[strong **Equation:**] [delim $][inner&tag \\pi][delim $]");
})();

Version data entries

50 entries across 50 versions & 7 rubygems

Version Path
jeygeethanmedia-inkpen-1.2.6.2 public/codemirror/addon/mode/multiplex_test.js
jeygeethanmedia-inkpen-1.2.6.1 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.6.1 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.6 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.5 public/codemirror/addon/mode/multiplex_test.js
kms-1.2.1 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-1.2.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-1.1.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.3 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.2 public/codemirror/addon/mode/multiplex_test.js
kms-1.0.1 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-1.0.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.1.1 public/codemirror/addon/mode/multiplex_test.js
kms-0.9.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-0.8.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-0.7.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
kms-0.6.0 vendor/assets/bower_components/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2.1 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.2 public/codemirror/addon/mode/multiplex_test.js
lines-engine-1.1.5.3 public/codemirror/addon/mode/multiplex_test.js