In mathValidator.ts:validateMathInBuffer, katex.renderToString is called synchronously for every math snippet found in the file on every keystroke / model change. In documents with many <m>, <me>, <mrow> etc. elements, this can block the browser's main thread long enough to visibly freeze the Monaco editor.
In
mathValidator.ts:validateMathInBuffer,katex.renderToStringis called synchronously for every math snippet found in the file on every keystroke / model change. In documents with many<m>,<me>,<mrow>etc. elements, this can block the browser's main thread long enough to visibly freeze the Monaco editor.