Skip to content

Commit f883d40

Browse files
committed
Slight update to labs
1 parent 8bb0485 commit f883d40

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

lib/Mml-lab.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,8 @@ const Lab = window.Lab = {
2121
let text = this.output.appendChild(document.createTextNode(''));
2222

2323
let MML = this.mml.value;
24-
let math = new HTMLMathItem(MML,mml);
24+
let math = new HTMLMathItem(MML, mml, this.display);
2525
math.setMetrics(16,8,16*20,100000,1);
26-
math.display = this.display;
2726
math.start = {node: text, n: 0, delim: ''};
2827
math.end = {node: text, n: 0, delim: ''};
2928
this.jax = math;

lib/TeX-lab.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,10 @@ import {handleRetriesFor} from '../mathjax3/util/Retries.js';
66
import {browserAdaptor} from '../mathjax3/adaptors/browserAdaptor.js';
77

88
import {ConfigurationHandler} from '../mathjax3/input/tex/Configuration.js';
9-
109
import '../mathjax3/input/tex/base/BaseConfiguration.js';
1110
import '../mathjax3/input/tex/ams/AmsConfiguration.js';
1211
import '../mathjax3/input/tex/noundefined/NoUndefinedConfiguration.js';
1312

14-
1513
const chtml = new CHTML();
1614
const adaptor = browserAdaptor();
1715
const doc = new HTMLDocument(document, adaptor, {OutputJax: chtml});
@@ -30,9 +28,8 @@ const Lab = window.Lab = {
3028
let text = this.output.appendChild(document.createTextNode(''));
3129

3230
let LaTeX = this.tex.value;
33-
let math = new HTMLMathItem(LaTeX, this.TeX);
31+
let math = new HTMLMathItem(LaTeX, this.TeX, this.display);
3432
math.setMetrics(16, 8, 16*20, 100000, 1);
35-
math.display = this.display;
3633
math.start = {node: text, n: 0, delim: ''};
3734
math.end = {node: text, n: 0, delim: ''};
3835
this.jax = math;

0 commit comments

Comments
 (0)