Closed Tweoss closed 5 months ago
I'm not sure whether someone would like to override the command \(
by renewcommand, in which we will fail since we treat \(
as BeginMathInline
rather than a generic command. Similarly, so do \)
, \[
, and \]
. But that is an edge case, so overall it looks good to me.
Thanks for the feedback! I added two tokens TokenStartMath
and TokenEndMath
, which seems to be the minimal necessary additions to clearly distinguish what's being used. (as opposed to adding StartMathDisplay and StartMathInline, which seemed inconsistent with the treatment of $
and $$
as one token)
Please let me know if there's anything else you see that could be improved
I have run tests and benchmarks locally, now the PR looks well to me.
This PR still lacks of an important thing, that adds parsing tests to the mitex-parser
for \(..\)
and \[..\]
, but I forgot to tell you that.
I will push some parsing tests in later PR by myself.
Not too sure on some of the organization, particularly treating
\(
and\[
as dollars syntactically.gives
Closes #124