export function checkForInputBlock ( cmEditor , cursorPos ) { const tokenType = cmEditor . getTokenAt ( cursorPos , true ) . type ; return ( typeof ( tokenType ) !== "string" ) || ( tokenType . indexOf ( "code" ) === - 1 && tokenType . indexOf ( "math" ) === - 1 ) ; }