This commit introduces a check before accessing the first character of 'texsymbol' strings in equation rendering, preventing IndexOutOfBoundsException when custom functions names are used which can lead to an empty string. This change ensures that equations with custom variable names ending with standard function strings are handled gracefully without errors.
This commit introduces a check before accessing the first character of 'texsymbol' strings in equation rendering, preventing IndexOutOfBoundsException when custom functions names are used which can lead to an empty string. This change ensures that equations with custom variable names ending with standard function strings are handled gracefully without errors.
Fixes #1704 Closes #1704