Skip to content

Commit 37d6414

Browse files
committed
Corrects incorrect conversion output.
1 parent 7751a27 commit 37d6414

File tree

6 files changed

+8431
-8543
lines changed

6 files changed

+8431
-8543
lines changed

tests/json/tex_packages/action/action-macros.json

Lines changed: 71 additions & 74 deletions
Original file line numberDiff line numberDiff line change
@@ -8,82 +8,79 @@
88
"tests": {
99
"toggle": {
1010
"input": "\\toggle{A}{B}\\endtoggle",
11-
"expected": [
12-
{
13-
"kind": "math",
14-
"texClass": 0,
15-
"attributes": {
16-
"display": "block"
17-
},
18-
"inherited": {
19-
"displaystyle": true,
20-
"scriptlevel": 0
21-
},
22-
"properties": {},
23-
"childNodes": [
24-
{
25-
"kind": "mrow",
26-
"texClass": 0,
27-
"attributes": {},
28-
"inherited": {
29-
"displaystyle": true,
30-
"scriptlevel": 0
31-
},
32-
"properties": {},
33-
"childNodes": [
34-
{
35-
"kind": "maction",
36-
"texClass": 0,
37-
"attributes": {},
38-
"inherited": {
39-
"displaystyle": true,
40-
"scriptlevel": 0
11+
"expected": {
12+
"kind": "math",
13+
"texClass": 0,
14+
"attributes": {
15+
"display": "block"
16+
},
17+
"inherited": {
18+
"displaystyle": true,
19+
"scriptlevel": 0
20+
},
21+
"properties": {},
22+
"childNodes": [
23+
{
24+
"kind": "mrow",
25+
"texClass": 0,
26+
"attributes": {},
27+
"inherited": {
28+
"displaystyle": true,
29+
"scriptlevel": 0
30+
},
31+
"properties": {},
32+
"childNodes": [
33+
{
34+
"kind": "maction",
35+
"texClass": 0,
36+
"attributes": {},
37+
"inherited": {
38+
"displaystyle": true,
39+
"scriptlevel": 0
40+
},
41+
"properties": {},
42+
"childNodes": [
43+
{
44+
"kind": "mi",
45+
"texClass": 0,
46+
"attributes": {},
47+
"inherited": {
48+
"displaystyle": true,
49+
"scriptlevel": 0,
50+
"mathvariant": "italic"
51+
},
52+
"properties": {},
53+
"childNodes": [
54+
{
55+
"kind": "text",
56+
"text": "A"
57+
}
58+
]
4159
},
42-
"properties": {},
43-
"childNodes": [
44-
{
45-
"kind": "mi",
46-
"texClass": 0,
47-
"attributes": {},
48-
"inherited": {
49-
"displaystyle": true,
50-
"scriptlevel": 0,
51-
"mathvariant": "italic"
52-
},
53-
"properties": {},
54-
"childNodes": [
55-
{
56-
"kind": "text",
57-
"text": "A"
58-
}
59-
]
60+
{
61+
"kind": "mi",
62+
"texClass": 0,
63+
"attributes": {},
64+
"inherited": {
65+
"displaystyle": true,
66+
"scriptlevel": 0,
67+
"mathvariant": "italic"
6068
},
61-
{
62-
"kind": "mi",
63-
"texClass": 0,
64-
"attributes": {},
65-
"inherited": {
66-
"displaystyle": true,
67-
"scriptlevel": 0,
68-
"mathvariant": "italic"
69-
},
70-
"properties": {},
71-
"childNodes": [
72-
{
73-
"kind": "text",
74-
"text": "B"
75-
}
76-
]
77-
}
78-
]
79-
}
80-
],
81-
"isInferred": true
82-
}
83-
]
84-
},
85-
false
86-
]
69+
"properties": {},
70+
"childNodes": [
71+
{
72+
"kind": "text",
73+
"text": "B"
74+
}
75+
]
76+
}
77+
]
78+
}
79+
],
80+
"isInferred": true
81+
}
82+
]
83+
}
8784
},
8885
"mathtip": {
8986
"input": "\\mathtip{A}{B}",

0 commit comments

Comments
 (0)