Treffer: mathjax/MathJax-src: MathJax v4.0.0-beta.2
Weitere Informationen
This is the second preliminary release of version 4, which we hope to be the last beta release before the official version becomes available. We include fixes for a number of issues reported with the alpha release, and add several new features and improvements as well. A significant one is that we now provide the MathJax JavaScript files as both ES modules as well as the older CommonJS format that we have been using in the past, and these newer ES modules are compiled into ES6 rather than the older ES5 used in earlier versions. This is discussed more fully below. There is a lot of information here, but you can use the links below to jump to the points that interest you. Major New Features ES6 modules Improvements to Line Breaking Improvements to Assistive Support New TeX Features New Output Features User-Interface Updates API Changes Changes to the Build Tools Updates and Resolved Issues TeX Updates MathML Updates Output Updates User Interface Updates API Updates Availabilty of v4.0.0-beta New Features This beta version of MathJax introduces the following significant new features in addition to those from the v4 alpha release. ES6 Modules When MathJax was first released, the current version of JavaScript was ES5, so when the code base was moved to Typescript for v3, it was down-compiled to produce ES5 code. Modern browsers support ES6, which include many new features, such as true object class creation and inheritance, proper import and export commands, Set and Map objects, promises, iterators, and many other features that make JavaScript programs faster and more reliable. Along with new language features, ES6 introduced a new module structure that affects how individual javascript files obtain values from other files, and how they make their own definitions available to others. ES6 modules (which we will refer to as "MJS") use the new import and export commands to do this, while the older CommonJS module format (which we will call "CJS") used require() and the module.exports object to perform those functions. ...