-
Notifications
You must be signed in to change notification settings - Fork 1
/
example.html
59 lines (54 loc) · 1.24 KB
/
example.html
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
50
51
52
53
54
55
56
57
58
59
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>mathml-to-clipboard</title>
<script src="https://fred-wang.github.io/mathml.css/mspace.js"></script>
<script src="dist/main.js"></script>
</head>
<body>
<p>
Try selecting the next MathML block or a part of it with <mark>text selection</mark>, then copy (<kbd>Ctrl+C</kbd>) and paste into a text editor:
</p>
<math xmlns="http://www.w3.org/1998/Math/MathML" display="block">
<mi>x</mi>
<mo>=</mo>
<mfrac>
<mrow>
<mrow>
<mo>−</mo>
<mi>b</mi>
</mrow>
<mo>±</mo>
<msqrt>
<mrow>
<msup>
<mi>b</mi>
<mn>2</mn>
</msup>
<mo>−</mo>
<mrow>
<mn>4</mn>
<mo>⁢</mo>
<mi>a</mi>
<mo>⁢</mo>
<mi>c</mi>
</mrow>
</mrow>
</msqrt>
</mrow>
<mrow>
<mn>2</mn>
<mo>⁢</mo>
<mi>a</mi>
</mrow>
</mfrac>
</math>
<p>
You should see something like <code>x=(-b±sqrt(b^2-4ac))/(2a)</code>, not <code>x = − b ± b 2 − 4 a c 2 a</code>.
</p>
<p>
You can also try dragging and dropping the selection instead of using the clipboard.
</p>
</body>
</html>