@@ -516,6 +516,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
516516 const open = parser . GetArgument ( name ) ;
517517 const close = parser . GetArgument ( name ) ;
518518 MathtoolsUtil . addPairedDelims ( parser . configuration , cs , [ open , close ] ) ;
519+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
519520 } ,
520521
521522 /**
@@ -531,6 +532,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
531532 const close = parser . GetArgument ( name ) ;
532533 const body = parser . GetArgument ( name ) ;
533534 MathtoolsUtil . addPairedDelims ( parser . configuration , cs , [ open , close , body , n ] ) ;
535+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
534536 } ,
535537
536538 /**
@@ -548,6 +550,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
548550 const post = parser . GetArgument ( name ) ;
549551 const body = parser . GetArgument ( name ) ;
550552 MathtoolsUtil . addPairedDelims ( parser . configuration , cs , [ open , close , body , n , pre , post ] ) ;
553+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
551554 } ,
552555
553556 /**
@@ -711,6 +714,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
711714 throw new TexError ( 'DuplicateTagForm' , 'Duplicate tag form: %1' , id ) ;
712715 }
713716 tags . mtFormats . set ( id , [ left , right , format ] ) ;
717+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
714718 } ,
715719
716720 /**
@@ -727,12 +731,14 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
727731 const id = parser . GetArgument ( name ) . trim ( ) ;
728732 if ( ! id ) {
729733 tags . mtCurrent = null ;
734+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
730735 return ;
731736 }
732737 if ( ! tags . mtFormats . has ( id ) ) {
733738 throw new TexError ( 'UndefinedTagForm' , 'Undefined tag form: %1' , id ) ;
734739 }
735740 tags . mtCurrent = tags . mtFormats . get ( id ) ;
741+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
736742 } ,
737743
738744 /**
@@ -757,6 +763,7 @@ export const MathtoolsMethods: Record<string, ParseMethod> = {
757763 for ( const id of Object . keys ( keys ) ) {
758764 options [ id ] = keys [ id ] ;
759765 }
766+ parser . Push ( parser . itemFactory . create ( 'null' ) ) ;
760767 } ,
761768
762769 /**
0 commit comments