-
-
Notifications
You must be signed in to change notification settings - Fork 263
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
Improve katex/math text rendering in ZT #1024
Conversation
@zulipbot add "area: message rendering" |
09e191c
to
cc69d4d
Compare
7ce46de
to
7473e2d
Compare
@Ezio-Sarthak Given discussion in the stream, it seems like we have the source available in the rendered text and that may be the straightforward output to show for now - perhaps with a code styling? (we don't style the math at all right now, it seems?) You've not updated the tests for math/katex, which is concerning that things are still passing; that aside I'd like to see some more detailed examples to cover the cases you discuss. |
7473e2d
to
bc0d87f
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Ezio-Sarthak This should definitely improve rendering, though without good math rendering directly (if possible!) I'm not sure how strong ZT is for maths. We should probably add an issue to indicate this limitation.
As per my inline comment I'd suggest replacing the existing test case with the new one since it more accurately reflects the behavior we want, and let's combine the first and second commits. I know I mentioned TDD, and it's good to note in the PR text to note you developed that way, but for now we're sticking with each commit passing CI without xfails - I think we discussed that, but we can follow-up on czo to discuss further if necessary.
This also needs a black rebase.
dc03444
to
744333b
Compare
This commit stabilizes the behavior of katex/math text rendering in ZT. Currently, a katex/math text is rendered multiple (mostly 3) times and thus creates a visual problem. To sustain the markdown information, this commit heads toward showing the raw KaTex/math source markup. The existing tests are improved to reflect expected behavior. The cases are distinguished as per the markdown (see inline comments).
744333b
to
99359a3
Compare
@Ezio-Sarthak I just made a few text adjustments and re-pushed here, and will merge shortly 🎉 Other than the reduced noise from the math in triplicate, the styling separates the text well too 👍 |
No description provided.