Skip to content

Commit

Permalink
Resolves asciidoctor#100, Update MathJax to 2.6.x
Browse files Browse the repository at this point in the history
  • Loading branch information
ggrossetie committed Jan 31, 2016
1 parent 0c7d45b commit 12ac4d4
Show file tree
Hide file tree
Showing 895 changed files with 2,888 additions and 1,122 deletions.
4 changes: 2 additions & 2 deletions app/vendor/MathJax/MathJax.js

Large diffs are not rendered by default.

49 changes: 28 additions & 21 deletions app/vendor/MathJax/config/Accessible.js

Large diffs are not rendered by default.

54 changes: 31 additions & 23 deletions app/vendor/MathJax/config/TeX-MML-AM_HTMLorMML.js

Large diffs are not rendered by default.

76 changes: 68 additions & 8 deletions app/vendor/MathJax/config/default.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* ---------------------------------------------------------------------
*
* Copyright (c) 2009-2013 The MathJax Consortium
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -76,15 +76,30 @@ MathJax.Hub.Config({
// A comma-separated list of input and output jax to initialize at startup.
// Their main code is loaded only when they are actually used, so it is not
// inefficient to include jax that may not actually be used on the page. These
// are found in the MathJax/jax directory.
// are found in the MathJax/jax directory. The choices include
//
jax: ["input/TeX","output/HTML-CSS"],
// input/TeX
// input/MathML
// input/AsciiMath
//
// output/HTML-CSS
// output/NativeMML
// output/SVG
//
// If you change the input jax, you may need to include the appropriate
// preprocessor in the extensions array below.
//
jax: ["input/TeX", "output/HTML-CSS"],

//
// A comma-separated list of extensions to load at startup. The default
// directory is MathJax/extensions.
//
// Example: extensions: ["tex2jax.js","TeX/AMSmath.js","TeX/AMSsymbols.js"],
//
// You may wish to include "mml2jax.js" if you are using "input/MathML" in the
// jax array above, and "asciimath2jax.js" if you using "input/AsciiMath".
// Include "jsmath2jax.js" if you are converting from using jsMath to MathJax.
//
extensions: ["tex2jax.js"],

Expand Down Expand Up @@ -154,10 +169,12 @@ MathJax.Hub.Config({
// These two parameters control the alignment and shifting of displayed equations.
// The first can be "left", "center", or "right", and determines the alignment of
// displayed equations. When the alignment is not "center", the second determines
// an indentation from the left or right side for the displayed equations.
// an indentation from the left or right side for the displayed equations. When
// the alignment is "center", the indent allows you to shift the center to the right
// or left (negative is left).
//
displayAlign: "center",
displayIndent: "0em",
displayIndent: "0",

//
// Normally MathJax will perform its starup commands (loading of
Expand Down Expand Up @@ -195,7 +212,7 @@ MathJax.Hub.Config({
// reposition the browser to the #hash location from the page URL after
// typesetting for the page.
//
positionToHash: false,
positionToHash: true,

//
// These control whether to attach the MathJax contextual menu to the
Expand Down Expand Up @@ -228,7 +245,8 @@ MathJax.Hub.Config({
context: "MathJax", // or "Browser" for pass-through to browser menu
mpContext: false, // true means pass menu events to MathPlayer in IE
mpMouse: false, // true means pass mouse events to MathPlayer in IE
texHints: true // include class names for TeXAtom elements
texHints: true, // include class names for TeXAtom elements
semantics: false // add semantics tag with original form in MathML output
},

//
Expand Down Expand Up @@ -492,7 +510,7 @@ MathJax.Hub.Config({
//
// This is the amound of indentation (from right or left) for the tags.
//
TagIndent: ".8em",
TagIndent: "0.8em",

//
// This is the width to use for the multline environment
Expand Down Expand Up @@ -569,6 +587,22 @@ MathJax.Hub.Config({
// These parameters control the AsciiMath input jax.
//
AsciiMath: {
//
// Determines whether the unicode positions for phi and varphi are
// to be swapped or not. (Unicode originally had these reversed, and
// many fonts have them reversed as well.) When set to true, phi
// and varphi will correspond to the LaTeX macros of the same name.
//
fixphi: true,

//
// Determines whether the MathML should be marked so that the HTML-CSS
// and SVG output jax will use MathML spacing rules rather than TeX
// spacing rules. Since AsciiMath was designed for MathML output, the
// MathML rules are used by default.
//
useMathMLspacing: true,

//
// Determines whether limits are placed above and below operators,
// or next to them. (AsciiMath doesn't have separate in-line and
Expand Down Expand Up @@ -702,10 +736,25 @@ MathJax.Hub.Config({
EqnChunkFactor: 1.5,
EqnChunkDelay: 100,

//
// This option indicates whether MathJax should try to correct the
// x-height of equations to match the size of the surrounding text.
//
matchFontHeight: true,

//
// When true, MathJax will not measure the widths or heights of the
// subexpressions as it creates its output, but instead will rely on
// its internal calculautions based on teh bounding boxes of the
// characters it uses, and will only take measurements when it
// absolutely has to. Since measurements cause display reflows, they
// slows down MathJax considerably, so without them MathJax runs
// faster, but can produce slightly less accurate character placements,
// especially in width fractions or roots.
//
noReflows: true,


//
// These settings control automatic line breaking. It is off by
// default, so only explicit line breaks are performed (via
Expand Down Expand Up @@ -921,6 +970,17 @@ MathJax.Hub.Config({
width: "container"
},

//
// These are the styles used for merror elements in SVG output. Note
// that only a limited number of style attributes are supported by
// SVG, but you can at least change the colors and borders.
//
//
merrorStyle: {
fontSize:"90%", color:"#C00", background:"#FF8",
border: "1px solid #C00", padding:"3px"
},

//
// This allows you to define or modify the styles used to display
// various math elements created by MathJax.
Expand Down
2 changes: 1 addition & 1 deletion app/vendor/MathJax/config/local/local.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
*
* ---------------------------------------------------------------------
*
* Copyright (c) 2009-2013 The MathJax Consortium
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down
19 changes: 19 additions & 0 deletions app/vendor/MathJax/extensions/AssistiveMML.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

19 changes: 19 additions & 0 deletions app/vendor/MathJax/extensions/CHTML-preview.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* /MathJax/extensions/CHTML-preview.js
*
* Copyright (c) 2009-2015 The MathJax Consortium
*
* Licensed under the Apache License, Version 2.0 (the "License");
* 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.
*/

MathJax.Callback.Queue(["Require",MathJax.Ajax,"[MathJax]/extensions/fast-preview.js"],["loadComplete",MathJax.Ajax,"[MathJax]/extensions/CHTML-preview.js"]);
4 changes: 2 additions & 2 deletions app/vendor/MathJax/extensions/FontWarnings.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 12ac4d4

Please sign in to comment.