Fix mtable align parameter to be the default (rather than center) when it is incorrectly specified (resolves error in issue #165)
This commit is contained in:
parent
0fe2bbfa52
commit
81c9070044
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -140,7 +140,7 @@ MathJax.Hub.Register.StartupHook("HTML-CSS Jax Ready",function () {
|
|||
var Y, fY, n = "";
|
||||
if (typeof(values.align) !== "string") {values.align = String(values.align)}
|
||||
if (values.align.match(/(top|bottom|center|baseline|axis)( +(-?\d+))?/))
|
||||
{n = RegExp.$3; values.align = RegExp.$1} else {values.align = "center"}
|
||||
{n = RegExp.$3; values.align = RegExp.$1} else {values.align = this.defaults.align}
|
||||
if (n !== "") {
|
||||
//
|
||||
// Find the height of the given row
|
||||
|
|
|
@ -137,7 +137,7 @@ MathJax.Hub.Register.StartupHook("SVG Jax Ready",function () {
|
|||
var Y, fY, n = "";
|
||||
if (typeof(values.align) !== "string") {values.align = String(values.align)}
|
||||
if (values.align.match(/(top|bottom|center|baseline|axis)( +(-?\d+))?/))
|
||||
{n = RegExp.$3; values.align = RegExp.$1} else {values.align = "center"}
|
||||
{n = RegExp.$3; values.align = RegExp.$1} else {values.align = this.defaults.align}
|
||||
if (n !== "") {
|
||||
//
|
||||
// Find the height of the given row
|
||||
|
|
Loading…
Reference in New Issue
Block a user