mathjax-img
Advanced tools
Comparing version 3.2.0 to 3.2.1
@@ -5,2 +5,9 @@ # Changelog | ||
### [3.2.1](https://github.com/pkra/mathjax-img/compare/v3.2.0...v3.2.1) (2022-06-29) | ||
### Bug Fixes | ||
* add minified build ([d6551c6](https://github.com/pkra/mathjax-img/commit/d6551c633cdc48f2193d537964d7755ec31d4ff0)), closes [#16](https://github.com/pkra/mathjax-img/issues/16) | ||
## [3.2.0](https://github.com/pkra/mathjax-img/compare/v3.1.0...v3.2.0) (2022-06-28) | ||
@@ -7,0 +14,0 @@ |
@@ -1,1 +0,1 @@ | ||
!function(){var t={80:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=MathJax._.input.tex.Configuration.Configuration,e.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,e.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},579:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,e.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,e.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,e.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,e.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,e.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,e.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,e.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},516:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.TexError.default}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}!function(){function t(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(80),o=n(579),i=n(516),u=function(t){if(""===t)return"";if(t.match(/^\s*([-+]?(\.\d+|\d+(\.\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)\s*$/))return t.replace(/ /g,"");throw new i("BadImageDimen","Bad dimension for image: %1",t)};new o.CommandMap("img",{img:"Img"},{Img:function(n,r){var a=n.GetBrackets(r,""),o={valign:"",width:"",height:""};if(a.match(/[,=]/)){var l,p=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw i}}}}(a.split(/\s*,\s*/));try{for(p.s();!(l=p.n()).done;){var c=t(l.value.split(/\s*=\s*/)),f=c[0],m=c.slice(1);if(!o.hasOwnProperty(f))throw new i("UnknownKey",'Unknown parameter "%1" in %2',f,r);o[f]=u(m.join("="))}}catch(t){p.e(t)}finally{p.f()}}else o.valign=u(a),o.width=u(n.GetBrackets(r,"")),o.height=u(n.GetBrackets(r,""));o.src=n.GetArgument(r),o.valign||delete o.valign,o.width||delete o.width,o.height||delete o.height,n.Push(n.create("token","mglyph",o))}}),a.Configuration.create("img",{handler:{macro:["img"]}})}()}(); | ||
!function(){var t={80:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.Configuration=MathJax._.input.tex.Configuration.Configuration,e.ConfigurationHandler=MathJax._.input.tex.Configuration.ConfigurationHandler,e.ParserConfiguration=MathJax._.input.tex.Configuration.ParserConfiguration},579:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.AbstractSymbolMap=MathJax._.input.tex.SymbolMap.AbstractSymbolMap,e.RegExpMap=MathJax._.input.tex.SymbolMap.RegExpMap,e.AbstractParseMap=MathJax._.input.tex.SymbolMap.AbstractParseMap,e.CharacterMap=MathJax._.input.tex.SymbolMap.CharacterMap,e.DelimiterMap=MathJax._.input.tex.SymbolMap.DelimiterMap,e.MacroMap=MathJax._.input.tex.SymbolMap.MacroMap,e.CommandMap=MathJax._.input.tex.SymbolMap.CommandMap,e.EnvironmentMap=MathJax._.input.tex.SymbolMap.EnvironmentMap},516:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=MathJax._.input.tex.TexError.default}},e={};function n(r){var a=e[r];if(void 0!==a)return a.exports;var o=e[r]={exports:{}};return t[r](o,o.exports,n),o.exports}!function(){function t(t){return function(t){if(Array.isArray(t))return t}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||e(t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function e(t,e){if(t){if("string"==typeof t)return r(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?r(t,e):void 0}}function r(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n<e;n++)r[n]=t[n];return r}var a=n(80),o=n(579),i=n(516),u=function(t){if(""===t)return"";if(t.match(/^\s*([-+]?(\.\d+|\d+(\.\d*)?))\s*(pt|em|ex|mu|px|mm|cm|in|pc)\s*$/))return t.replace(/ /g,"");throw new i("BadImageDimen","Bad dimension for image: %1",t)};new o.CommandMap("img",{img:"Img"},{Img:function(n,r){var a=n.GetBrackets(r,""),o={valign:"",width:"",height:""};if(a.match(/[,=]/)){var l,p=function(t,n){var r="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!r){if(Array.isArray(t)||(r=e(t))||n&&t&&"number"==typeof t.length){r&&(t=r);var a=0,o=function(){};return{s:o,n:function(){return a>=t.length?{done:!0}:{done:!1,value:t[a++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,u=!0,l=!1;return{s:function(){r=r.call(t)},n:function(){var t=r.next();return u=t.done,t},e:function(t){l=!0,i=t},f:function(){try{u||null==r.return||r.return()}finally{if(l)throw i}}}}(a.split(/\s*,\s*/));try{for(p.s();!(l=p.n()).done;){var c=t(l.value.split(/\s*=\s*/)),f=c[0],m=c.slice(1);if(!o.hasOwnProperty(f))throw new i("UnknownKey",'Unknown parameter "%1" in %2',f,r);o[f]=u(m.join("="))}}catch(t){p.e(t)}finally{p.f()}}else o.valign=u(a),o.width=u(n.GetBrackets(r,"")),o.height=u(n.GetBrackets(r,""));o.alt=n.GetBrackets(r,""),o.src=n.GetArgument(r),o.valign||delete o.valign,o.width||delete o.width,o.height||delete o.height,o.alt||delete o.alt,n.Push(n.create("token","mglyph",o))}}),a.Configuration.create("img",{handler:{macro:["img"]}})}()}(); |
{ | ||
"name": "mathjax-img", | ||
"main": "./img.js", | ||
"version": "3.2.0", | ||
"version": "3.2.1", | ||
"description": "img extension for MathJax's TeX input", | ||
@@ -6,0 +6,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29084