Sha256: 9956ae95af26db1e175c3ecbb510ede73849407941639de605fefd46adc18f21

Contents?: true

Size: 682 Bytes

Versions: 15

Compression:

Stored size: 682 Bytes

Contents

(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

15 entries across 15 versions & 3 rubygems

Version Path
gump-0.1.6 server/assets/js/jquery.codemirror/addon/mode/multiplex_test.js
poly-cms-0.1.2 core/admin/assets/js/vendor/codemirror/addon/mode/multiplex_test.js
poly-cms-0.1.1 core/admin/assets/js/vendor/codemirror/addon/mode/multiplex_test.js
poly-cms-0.1.0 core/admin/assets/js/vendor/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.17 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.16 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.15 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.14 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.13 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.12 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.11 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.10 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.7 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.6 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js
bonethug-0.0.5 skel/project_types/silverstripe3/public/abc/lib/codemirror/addon/mode/multiplex_test.js