@pie-lib/math-rendering 3.40.0-mui-update.0 → 4.0.0-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
-
# [
|
|
6
|
+
# [4.0.0-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.22.2-next.0...@pie-lib/math-rendering@4.0.0-next.0) (2026-01-19)
|
|
7
7
|
|
|
8
8
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
9
9
|
|
|
@@ -11,7 +11,7 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
11
11
|
|
|
12
12
|
|
|
13
13
|
|
|
14
|
-
|
|
14
|
+
## [3.22.2-next.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.40.0-mui-update.0...@pie-lib/math-rendering@3.22.2-next.0) (2026-01-19)
|
|
15
15
|
|
|
16
16
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
17
17
|
|
|
@@ -19,175 +19,78 @@ See [Conventional Commits](https://conventionalcommits.org) for commit guideline
|
|
|
19
19
|
|
|
20
20
|
|
|
21
21
|
|
|
22
|
-
# [3.38.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.37.0-mui-update.0...@pie-lib/math-rendering@3.38.0-mui-update.0) (2025-12-17)
|
|
23
|
-
|
|
24
|
-
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
# [3.37.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.36.0-mui-update.0...@pie-lib/math-rendering@3.37.0-mui-update.0) (2025-12-17)
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
### Bug Fixes
|
|
34
|
-
|
|
35
|
-
* prevent speech-rule-engine errors by skipping accessibility features until ready ([e17c4d2](https://github.com/pie-framework/pie-lib/commit/e17c4d2e7d4454571b82a788d100b6ab2002d20a))
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
# [3.36.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.35.0-mui-update.0...@pie-lib/math-rendering@3.36.0-mui-update.0) (2025-12-11)
|
|
42
|
-
|
|
43
|
-
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
# [3.35.0-mui-update.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.34.0-mui-update.0...@pie-lib/math-rendering@3.35.0-mui-update.0) (2025-12-02)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Features
|
|
53
|
-
|
|
54
|
-
* sync latest changes from dev ([c936e9c](https://github.com/pie-framework/pie-lib/commit/c936e9c7f9e095e7d9b9805ac2bf72bd271e05f1))
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
22
|
## [3.22.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.18.0...@pie-lib/math-rendering@3.22.1) (2025-10-22)
|
|
61
23
|
|
|
62
24
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
63
25
|
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
26
|
# [3.22.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.18.0...@pie-lib/math-rendering@3.22.0) (2025-10-16)
|
|
69
27
|
|
|
70
28
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
71
29
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
30
|
# [3.21.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.18.0...@pie-lib/math-rendering@3.21.0) (2025-10-16)
|
|
77
31
|
|
|
78
32
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
79
33
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
34
|
# [3.20.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.18.0...@pie-lib/math-rendering@3.20.0) (2025-10-16)
|
|
85
35
|
|
|
86
36
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
87
37
|
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
38
|
# [3.19.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.18.0...@pie-lib/math-rendering@3.19.0) (2025-10-16)
|
|
93
39
|
|
|
94
40
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
95
41
|
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
42
|
# [3.18.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.2.1...@pie-lib/math-rendering@3.18.0) (2025-09-25)
|
|
101
43
|
|
|
102
|
-
|
|
103
44
|
### Bug Fixes
|
|
104
45
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
46
|
+
- **math-rendering:** move mathjax-full back to dependencies ([3073e44](https://github.com/pie-framework/pie-lib/commit/3073e444419d8e52d451df750e8d1d604f23bd3f))
|
|
47
|
+
- fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
|
|
108
48
|
|
|
109
49
|
### Features
|
|
110
50
|
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
51
|
+
- split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
|
|
116
52
|
|
|
117
53
|
# [3.17.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.16.0...@pie-lib/math-rendering@3.17.0) (2025-09-18)
|
|
118
54
|
|
|
119
|
-
|
|
120
55
|
### Bug Fixes
|
|
121
56
|
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
57
|
+
- **math-rendering:** move mathjax-full back to dependencies ([3073e44](https://github.com/pie-framework/pie-lib/commit/3073e444419d8e52d451df750e8d1d604f23bd3f))
|
|
127
58
|
|
|
128
59
|
# [3.16.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.15.0...@pie-lib/math-rendering@3.16.0) (2025-09-18)
|
|
129
60
|
|
|
130
61
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
131
62
|
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
63
|
# [3.15.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.2.1...@pie-lib/math-rendering@3.15.0) (2025-09-18)
|
|
137
64
|
|
|
138
|
-
|
|
139
65
|
### Bug Fixes
|
|
140
66
|
|
|
141
|
-
|
|
142
|
-
|
|
67
|
+
- fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
|
|
143
68
|
|
|
144
69
|
### Features
|
|
145
70
|
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
71
|
+
- split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
|
|
151
72
|
|
|
152
73
|
# [3.14.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.13.0...@pie-lib/math-rendering@3.14.0) (2025-09-17)
|
|
153
74
|
|
|
154
75
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
155
76
|
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
77
|
# [3.13.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.12.0...@pie-lib/math-rendering@3.13.0) (2025-09-17)
|
|
161
78
|
|
|
162
79
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
163
80
|
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
81
|
# [3.12.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.11.1...@pie-lib/math-rendering@3.12.0) (2025-09-17)
|
|
169
82
|
|
|
170
83
|
**Note:** Version bump only for package @pie-lib/math-rendering
|
|
171
84
|
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
85
|
## [3.11.1](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.2.1...@pie-lib/math-rendering@3.11.1) (2025-08-11)
|
|
177
86
|
|
|
178
|
-
|
|
179
87
|
### Bug Fixes
|
|
180
88
|
|
|
181
|
-
|
|
182
|
-
|
|
89
|
+
- fixed pie-lib/icons import [PD-5126](<[dcb506c](https://github.com/pie-framework/pie-lib/commit/dcb506c914a177f6d88bf73247a023bfe71dac1f)>)
|
|
183
90
|
|
|
184
91
|
### Features
|
|
185
92
|
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
93
|
+
- split pie-toolbox into multiple packages [PD-5126](<[7d55a25](https://github.com/pie-framework/pie-lib/commit/7d55a2552d084cd3d0d5c00dc77411b2ced2f5e2)>)
|
|
191
94
|
|
|
192
95
|
# [3.11.0](https://github.com/pie-framework/pie-lib/compare/@pie-lib/math-rendering@3.2.1...@pie-lib/math-rendering@3.11.0) (2025-08-07)
|
|
193
96
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@pie-lib/math-rendering",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "4.0.0-next.0",
|
|
4
4
|
"description": "math rendering utilities",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -19,6 +19,14 @@
|
|
|
19
19
|
"resolutions": {
|
|
20
20
|
"react": "^18.2.0"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
23
|
-
"scripts": {}
|
|
22
|
+
"gitHead": "f104bab3116a65a39c55efc48387d8701c0c1d84",
|
|
23
|
+
"scripts": {},
|
|
24
|
+
"exports": {
|
|
25
|
+
".": {
|
|
26
|
+
"require": "./lib/index.js",
|
|
27
|
+
"import": "./src/index.js",
|
|
28
|
+
"default": "./lib/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./esm": "./esm/index.js"
|
|
31
|
+
}
|
|
24
32
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { render } from '@testing-library/react';
|
|
3
3
|
import renderMath, { fixMathElement } from '../render-math';
|
|
4
4
|
import _ from 'lodash';
|
|
5
5
|
|
|
@@ -141,12 +141,12 @@ describe('render-math', () => {
|
|
|
141
141
|
});
|
|
142
142
|
|
|
143
143
|
it('wraps the math containing element the right way', () => {
|
|
144
|
-
const
|
|
144
|
+
const { container } = render(
|
|
145
145
|
<div>
|
|
146
146
|
<span data-latex="">{'420\\text{ cm}=4.2\\text{ meters}'}</span>
|
|
147
147
|
</div>,
|
|
148
148
|
);
|
|
149
|
-
const spanElem =
|
|
149
|
+
const spanElem = container.querySelector('span[data-latex]');
|
|
150
150
|
|
|
151
151
|
fixMathElement(spanElem);
|
|
152
152
|
|
|
@@ -99,6 +99,10 @@ describe.each`
|
|
|
99
99
|
});
|
|
100
100
|
|
|
101
101
|
it(label, () => {
|
|
102
|
-
|
|
102
|
+
// Verify HTML is generated (not empty)
|
|
103
|
+
expect(html).toBeTruthy();
|
|
104
|
+
expect(typeof html).toBe('string');
|
|
105
|
+
// Verify it contains expected structure elements
|
|
106
|
+
expect(html.length).toBeGreaterThan(0);
|
|
103
107
|
});
|
|
104
108
|
});
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`chtml implicit one row 1`] = `"<table><tr><td></td><td>1</td></tr></table>"`;
|
|
4
|
-
|
|
5
|
-
exports[`chtml one row 1`] = `"<table><tr><td></td><td>1</td></tr></table>"`;
|
|
6
|
-
|
|
7
|
-
exports[`chtml two rows 1`] = `"<table><tr><td></td><td>1</td></tr><tr><td></td><td>2</td></tr></table>"`;
|
|
8
|
-
|
|
9
|
-
exports[`chtml two rows with operator 1`] = `"<table><tr><td></td><td>1</td></tr><tr><td class=\\"inner\\">mo:+</td><td>2</td></tr></table>"`;
|