Repository navigation
feat: support {equation}, {equation*}, and {split} - #2369
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2369 +/- ##
==========================================
+ Coverage 93.96% 93.97% +0.01%
==========================================
Files 84 84
Lines 5434 5444 +10
Branches 959 961 +2
==========================================
+ Hits 5106 5116 +10
Misses 297 297
Partials 31 31
Continue to review full report at Codecov.
|
|
Isn't KaTeX assumed to be in |
|
No, KaTeX is in math mode by default. |
|
One of default delimiters in KaTeX/contrib/auto-render/auto-render.js Line 115 in 903b459 I think we should allow split at the outermost (top) level.
|
|
You have a point. It seems that That makes things a little awkward. The KaTeX option for So I agree to fall in with your views. I'll rewrite If anyone has an objection to this plan, please let me know. After this PR comes |
|
I believe the only reason that |
Co-authored-by: ylemkimon <[email protected]>
|
Well, I have screenshotter problems and CircleCI tells me that "This job has no artifacts." I'm stumped. And things were going so well. Any suggestions would be welcome. |
|
This PR now contains a breaking change in the This was driven home to me because one of the screenshotter Is LaTeX purity worth a breaking change? |
|
Perhaps a |
That seems reasonable for |
|
I'm not sure that the eslint check is working. I had to do a
|
|
@ronkok You can safely ignore the error (actually, a warning). |
|
Then this PR is ready for review. |
ylemkimon
left a comment
There was a problem hiding this comment.
Thank you for the PR! This was one of the most requested feature in KaTeX.
|
Thank you for the review! I'll mention here that I no longer intend to submit a PR for the So I will submit no more environments any time soon. I do have some documentation to submit. |
Three more AMS environments.
In AMS LaTeX, the{split}environment is allowed only inside certain other environments, like{equation}or{gather}. I've set it so that in KaTeX, the{split}environment is allowed only inside{equation}. That's where it will be most valuable. If we get requests for other nesting, we can revisit this code at some later time.Here's a screenshot:
