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

LatexToAsciiMath incorrect interval notation #2455

Merged
merged 6 commits into from
Jul 17, 2024
Merged

Conversation

Ashp116
Copy link
Contributor

@Ashp116 Ashp116 commented Jul 17, 2024

I fixed the issue #2454, where {}, [], and () wouldn't accurately convert from LaTeX to Ascii.

@Ashp116 Ashp116 changed the title Fixed: #2454 Fixed: #2454: LatexToAsciiMath incorrect interval notation Jul 17, 2024
@Ashp116 Ashp116 closed this Jul 17, 2024
@Ashp116 Ashp116 reopened this Jul 17, 2024
@Ashp116 Ashp116 changed the title Fixed: #2454: LatexToAsciiMath incorrect interval notation LatexToAsciiMath incorrect interval notation Jul 17, 2024
Copy link
Owner

@arnog arnog left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR!

  • In general avoid making unnecessary changes to the indentation or formatting of the code. Running Prettier should auto-format the code.
  • There are a couple of console.log() that should be removed.
  • In SPECIAL_OPERATORS, line 193 of parse-math-string.ts, the \\{ and \\} entries should not be necessary, since these tokens will not appear in a ASCII Math string. However, removing lines 238-241 would take care of this case.
  • Thank you for including some test cases!

@arnog arnog merged commit 7aeb2ba into arnog:master Jul 17, 2024
1 of 2 checks passed
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.

2 participants