@@ -58,7 +58,7 @@ export const TextBaseConfiguration = Configuration.create('text-base', {
5858 // produces the error as configured in the main TeX parser, so
5959 // this will respect the noundefined package, if loaded).
6060 //
61- macro : ( parser : TextParser , name : string ) => {
61+ [ HandlerType . MACRO ] : ( parser : TextParser , name : string ) => {
6262 const texParser = parser . texParser ;
6363 const macro = texParser . lookup ( HandlerType . MACRO , name ) ;
6464 if ( macro && macro . _func !== TextMacrosMethods . Macro ) {
@@ -71,7 +71,7 @@ export const TextBaseConfiguration = Configuration.create('text-base', {
7171 texParser . parse ( HandlerType . MACRO , [ parser , name ] ) ;
7272 } ,
7373 } ,
74- items : {
74+ [ ConfigurationType . ITEMS ] : {
7575 [ StartItem . prototype . kind ] : StartItem ,
7676 [ StopItem . prototype . kind ] : StopItem ,
7777 [ MmlItem . prototype . kind ] : MmlItem ,
@@ -118,7 +118,10 @@ export const TextMacrosConfiguration = Configuration.create('textmacros', {
118118 * @param {ParserConfiguration } _config The configuration object we are being configured within
119119 * @param {TeX<any,any,any> } jax The TeX input jax in which we are running
120120 */
121- config ( _config : ParserConfiguration , jax : TeX < any , any , any > ) {
121+ [ ConfigurationType . CONFIG ] : (
122+ _config : ParserConfiguration ,
123+ jax : TeX < any , any , any >
124+ ) => {
122125 //
123126 // Create the configuration and parseOptions objects for the
124127 // internal TextParser and add the textBase configuration.
0 commit comments