Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixed issue with INLINE_MATH_TEX regex to accept spaces within inline #2188

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

lokashrinav
Copy link

@lokashrinav lokashrinav commented Nov 1, 2024

Updated the INLINE_MATH_TEX regex pattern to allow spaces within the inline math expression. Ensured proper escaping of dollar signs and backslashes. This change addresses the issue with spaces that users encounter.

This is a further fix for this issue from Jupyter Lab/Notebook since the original style may confuse the users with issues, such as in the following: jupyterlab/jupyterlab#11062

Transformed oriignal INLINE_MATH_TEX to INLINE_MATH_TEX = _dotall(r"(?<![$\])$(?!\s)(?P<math_inline_tex>[^$\\\s]+?)(?<!\s)(?<![$\])$")

Feel free to decide what you think should be done, and if further testing should be done.

lokashrinav and others added 2 commits October 31, 2024 20:30
… math expressions.

Updated the INLINE_MATH_TEX regex pattern to allow spaces within the inline math expression.
Ensured proper escaping of dollar signs and backslashes.
This change addresses the issue with spaces that users encounter
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant