lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js in gollum-1.1.1 vs lib/gollum/frontend/public/javascript/MathJax/jax/output/HTML-CSS/autoload/ms.js in gollum-1.2.0

- old
+ new

@@ -1,49 +1,18 @@ -/************************************************************* - * - * MathJax/jax/output/HTML-CSS/autoload/ms.js +/* + * ../SourceForge/trunk/mathjax/jax/output/HTML-CSS/autoload/ms.js * - * Implements the HTML-CSS output for <ms> elements. - * - * --------------------------------------------------------------------- - * * Copyright (c) 2010 Design Science, Inc. + * + * Part of the MathJax library. + * See http://www.mathjax.org for details. * - * Licensed under the Apache License, Version 2.0 (the "License"); + * Licensed under the Apache License, Version 2.0; * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * + * * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. */ -(function (MML) { - - MML.ms.Augment({ - toHTML: function (span) { - span = this.HTMLhandleSize(this.HTMLcreateSpan(span)); - var values = this.getValues("lquote","rquote"); - var text = this.data.join(""); // FIXME: handle mglyph? - var pattern = []; - if (values.lquote.length === 1) {pattern.push(this.HTMLquoteRegExp(values.lquote))} - if (values.rquote.length === 1) {pattern.push(this.HTMLquoteRegExp(values.rquote))} - if (pattern.length) {text = text.replace(RegExp("("+pattern.join("|")+")","g"),"\\$1")} - this.HTMLhandleVariant(span,this.HTMLgetVariant(),values.lquote+text+values.rquote); - this.HTMLhandleSpace(span); - this.HTMLhandleColor(span); - }, - HTMLquoteRegExp: function (string) { - return string.replace(/([.*+?|{}()\[\]\\])/g,"\\$1"); - } - }); - MML.ms.prototype.defaults.fontfamily = 'monospace'; - - MathJax.Hub.Startup.signal.Post("HTML-CSS ms Ready"); - -})(MathJax.ElementJax.mml); +MathJax.Unpack([ + ['(','function(','a){var b="1.0";a.ms.Augment({toHTML:',1,'d){d=this.HTMLhandleSize(this.HTMLcreateSpan(d));var c=this.getValues("lquote","rquote");var f=this.data.join("");var e=[];if(c.lquote','.length===1){e.push(this.HTMLquoteRegExp(c.','lquote))}if(c.rquote',5,'rquote))}if(e.length){f=f.replace(RegExp("("+e.join("|")+")","g"),"\\\\$1")}this.HTMLhandleVariant(d,this.HTMLgetVariant(),c.lquote+f+c.rquote);this.HTMLhandleSpace(d);this.HTMLhandleColor(d);return d},HTMLquoteRegExp:',1,'c){return c.replace(/([.*+?|{}()\\[\\]\\\\])/g,"\\\\$1")}});a.ms.prototype.defaults.fontfamily="monospace";MathJax.Hub.Startup.signal.Post("HTML-CSS ms Ready")})(MathJax.ElementJax.mml);MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].autoloadDir+"/ms.js");'] +]); -MathJax.Ajax.loadComplete(MathJax.OutputJax["HTML-CSS"].autoloadDir+"/ms.js");