-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmathml.js
49 lines (47 loc) · 1.13 KB
/
mathml.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
export const singleLine = '<math xmlns="http://www.w3.org/1998/Math/MathML"><mrow> <munderover> <mo>∑</mo> <mrow> <mi>k</mi> <mo>=</mo> <mn>1</mn> </mrow> <mn>7</mn> </munderover> <mfrac> <msup> <mi>x</mi> <mi>k</mi> </msup> <mrow> <mi>k</mi> <mo>!</mo> </mrow> </mfrac> </mrow> </math>';
export const multiLineNotIndented = `<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<munderover>
<mo>∑</mo>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mn>7</mn>
</munderover>
<mfrac>
<msup>
<mi>x</mi>
<mi>k</mi>
</msup>
<mrow>
<mi>k</mi>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
</math>`;
export const multiLineIndented = `<math xmlns="http://www.w3.org/1998/Math/MathML">
<mrow>
<munderover>
<mo>∑</mo>
<mrow>
<mi>k</mi>
<mo>=</mo>
<mn>1</mn>
</mrow>
<mn>7</mn>
</munderover>
<mfrac>
<msup>
<mi>x</mi>
<mi>k</mi>
</msup>
<mrow>
<mi>k</mi>
<mo>!</mo>
</mrow>
</mfrac>
</mrow>
</math>`;