CoreFiles by mySites.guru
multiplex_test.js33 lines, 810 bytes, from Joomla_3.4.1-Stable-Full_Package.zip
Raw History Compare with 3.4.0
md5
6e9c20d5c89c34f9245e1e346edc027b
sha1
718436ec9fdecbfe802ddaa3a1205c9a43d11c75
sha256
a22aecbdc39634437e6cbba62a92fe88b46b33e5cd468bb225a38f48c443ecec
// 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 $]");
})();

The same content is in 21 releases, Joomla 3.4.0-alpha to 3.5.0-beta. See them all, or every version of this file.