File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -134,7 +134,7 @@ export function variantString(atom: Atom): string {
134134 if ( ! style ) return '' ;
135135
136136 let result = style . variant ;
137- if ( result === undefined ) return 'normal' ;
137+ if ( result === undefined ) result = 'normal' ;
138138
139139 if (
140140 ! [
Original file line number Diff line number Diff line change @@ -205,7 +205,7 @@ export function defaultInsertStyleHook(
205205
206206 if ( model . mode === 'math' ) {
207207 const atom = model . at ( bias === 'right' ? info . after : info . before ) ;
208- if ( ! atom ) return mathfield . defaultStyle ;
208+ if ( ! atom ) return { variant : 'normal' , ... mathfield . defaultStyle } ;
209209 // Merge inherited style with defaultStyle, where defaultStyle takes precedence
210210 return { ...atom . style , variant : 'normal' , ...mathfield . defaultStyle } ;
211211 }
You can’t perform that action at this time.
0 commit comments