Fix bug with indenting of in-line math when displayAlign is not 'center', and remove outdated styles example
This commit is contained in:
parent
ec4e0a7682
commit
5ef4eb10d0
|
@ -456,10 +456,6 @@ MathJax.Hub.Config({
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
// styles: {
|
// styles: {
|
||||||
// ".MathJax_Display": {
|
|
||||||
// "text-align": "left", // left aligned displayed math
|
|
||||||
// "margin-left": "3em", // with 3em indentation
|
|
||||||
// },
|
|
||||||
// ".MathJax_Preview": {
|
// ".MathJax_Preview": {
|
||||||
// "font-size": "80%", // preview uses a smaller font
|
// "font-size": "80%", // preview uses a smaller font
|
||||||
// color: "red" // and is in red
|
// color: "red" // and is in red
|
||||||
|
@ -541,7 +537,7 @@ MathJax.Hub.Config({
|
||||||
//
|
//
|
||||||
// This is the URL for the MathJax Help menu item.
|
// This is the URL for the MathJax Help menu item.
|
||||||
//
|
//
|
||||||
helpURL: "http://www.mathjax.org/Help-User/",
|
helpURL: "http://www.mathjax.org/help/user/",
|
||||||
|
|
||||||
//
|
//
|
||||||
// These control whether the "Math Renderer", "Font Preferences",
|
// These control whether the "Math Renderer", "Font Preferences",
|
||||||
|
|
File diff suppressed because one or more lines are too long
|
@ -456,10 +456,6 @@ MathJax.Hub.Config({
|
||||||
//
|
//
|
||||||
// Example:
|
// Example:
|
||||||
// styles: {
|
// styles: {
|
||||||
// ".MathJax_Display": {
|
|
||||||
// "text-align": "left", // left aligned displayed math
|
|
||||||
// "margin-left": "3em", // with 3em indentation
|
|
||||||
// },
|
|
||||||
// ".MathJax_Preview": {
|
// ".MathJax_Preview": {
|
||||||
// "font-size": "80%", // preview uses a smaller font
|
// "font-size": "80%", // preview uses a smaller font
|
||||||
// color: "red" // and is in red
|
// color: "red" // and is in red
|
||||||
|
|
|
@ -2009,7 +2009,7 @@
|
||||||
//
|
//
|
||||||
// Handle indentalign and indentshift for single-line display equations
|
// Handle indentalign and indentshift for single-line display equations
|
||||||
//
|
//
|
||||||
if (!this.isMultiline && this.Get("display") && span.bbox.width == null) {
|
if (!this.isMultiline && this.Get("display") === "block" && span.bbox.width == null) {
|
||||||
var values = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");
|
var values = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");
|
||||||
if (values.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) {values.indentalign = values.indentalignfirst}
|
if (values.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) {values.indentalign = values.indentalignfirst}
|
||||||
if (values.indentalign === MML.INDENTALIGN.AUTO) {values.indentalign = this.displayAlign}
|
if (values.indentalign === MML.INDENTALIGN.AUTO) {values.indentalign = this.displayAlign}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user