UNPKG

mathjax

Version:

Beautiful and accessible math in all browsers. MathJax is an open-source JavaScript display engine for LaTeX, MathML, and AsciiMath notation that works in all browsers. This package includes the packaged components (install mathjax-full to get the source

1 lines 1.73 kB
(()=>{"use strict";var e={d:(t,o)=>{for(var a in o)e.o(o,a)&&!e.o(t,a)&&Object.defineProperty(t,a,{enumerable:!0,get:o[a]})}};e.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),e.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),e.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var t={};e.r(t),e.d(t,{ENCLOSE_OPTIONS:()=>g,EncloseConfiguration:()=>f,EncloseMethods:()=>h});const o=("undefined"!=typeof window?window:e.g).MathJax._.components.global,a=(o.GLOBAL,o.isObject,o.combineConfig,o.combineDefaults,o.combineWithMathJax),n=(o.MathJax,MathJax._.input.tex.HandlerTypes),r=n.ConfigurationType,i=n.HandlerType,c=MathJax._.input.tex.Configuration,s=c.Configuration,l=(c.ConfigurationHandler,c.ParserConfiguration,MathJax._.input.tex.TokenMap),p=(l.parseResult,l.AbstractTokenMap,l.RegExpMap,l.AbstractParseMap,l.CharacterMap,l.DelimiterMap,l.MacroMap,l.CommandMap),u=(l.EnvironmentMap,MathJax._.input.tex.ParseUtil),d=(u.KeyValueDef,u.KeyValueTypes,u.ParseUtil),g={"data-arrowhead":1,color:1,mathcolor:1,background:1,mathbackground:1,"data-padding":1,"data-thickness":1},h={Enclose(e,t){const o=e.GetArgument(t).replace(/,/g," "),a=e.GetBrackets(t,""),n=e.ParseArg(t),r=d.keyvalOptions(a,g);r.notation=o,e.Push(e.create("node","menclose",[n],r))}};new p("enclose",{enclose:h.Enclose});const f=s.create("enclose",{[r.HANDLER]:{[i.MACRO]:["enclose"]}});MathJax.loader&&MathJax.loader.checkVersion("[tex]/enclose","4.1.0","tex-extension"),a({_:{input:{tex:{enclose:{EncloseConfiguration:t}}}}})})();