Skip to content

Commit 574e1c3

Browse files
committed
Use isEmpty in MathtoolsUtil, as request in review
1 parent a43a44f commit 574e1c3

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ts/input/tex/mathtools/MathtoolsUtil.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ export const MathtoolsUtil = {
158158
parser.stack.env,
159159
parser.configuration
160160
).mml();
161-
return mml.isKind('TeXAtom') && mml.childNodes[0].childNodes.length === 0
161+
return mml.isKind('TeXAtom') && mml.isEmpty
162162
? parser.create('node', 'none')
163163
: mml;
164164
},

0 commit comments

Comments
 (0)