Skip to content

Commit ce6b729

Browse files
committed
Fix regression with line breaks in CHTML in-line equations (equations would disappear).
1 parent 5d4a843 commit ce6b729

File tree

1 file changed

+1
-1
lines changed
  • unpacked/jax/output/CommonHTML

1 file changed

+1
-1
lines changed

unpacked/jax/output/CommonHTML/jax.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1748,7 +1748,7 @@
17481748
if (alttext && !node.getAttribute("aria-label")) node.setAttribute("aria-label",alttext);
17491749
if (this.CHTML.pwidth) {
17501750
node.parentNode.style.minWidth = this.CHTML.mwidth||CHTML.Em(this.CHTML.w);
1751-
node.parentNode.className += " mjx-full-width";
1751+
node.parentNode.className = "mjx-full-width "+node.parentNode.className;
17521752
} else if (!this.isMultiline && this.Get("display") === "block") {
17531753
var values = this.getValues("indentalignfirst","indentshiftfirst","indentalign","indentshift");
17541754
if (values.indentalignfirst !== MML.INDENTALIGN.INDENTALIGN) values.indentalign = values.indentalignfirst;

0 commit comments

Comments
 (0)