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

[NEW] KaTeX Support #1973

Closed
jGleitz opened this issue Jul 6, 2017 · 29 comments · Fixed by #4361
Closed

[NEW] KaTeX Support #1973

jGleitz opened this issue Jul 6, 2017 · 29 comments · Fixed by #4361

Comments

@jGleitz
Copy link

jGleitz commented Jul 6, 2017

Rocket.Chat supports posting KaTeX, which will get rendered nicely in the conversation. For us, this is an outstanding feature.

Unfortunately, when posting KaTeX in the native app (e.g. $x$ or \[x\]), it is not rendered as KaTeX but stays as it is.

@matheusjardimb
Copy link

Hello @jGleitz, thanks for submitting issues!

This seems to be a good feature request 👍

@rafaelks rafaelks changed the title KaTeX Support [NEW] KaTeX Support Oct 5, 2017
@markbolo2
Copy link

Any progress on this? Reading chat on the mobile is super ugly because of all the Katex formatting that is not coming over.

@rafaelks
Copy link

rafaelks commented Oct 5, 2018

@markbolo2 Do you have any idea how this could be implemented?

@wreiske
Copy link
Contributor

wreiske commented Oct 13, 2018

Ahh! Please add support for KaTeX on the Android mobile app!

Desktop:
screen shot 2018-10-13 at 4 31 58 am
iOS
img_5266
Android
20181012_193719

https://apis.reiske.tech/math

@naidu
Copy link

naidu commented Dec 6, 2018

Does anybody monitors this space? No comments from the owners of the product.. :(

@rafaelks
Copy link

rafaelks commented Dec 6, 2018

@naidu Yes, we monitor this all the time... PR are welcome for this issue! Thank you! 👍

@vasylnakvasiuk
Copy link

Is this codebase for RocketChat Experimental or basic version?

@rafaelks
Copy link

rafaelks commented Dec 8, 2018

No, this is the native version from Play Store.

@blindrain
Copy link

This is still an issue with Android and Windows applications.

@edmundlaugasson
Copy link

edmundlaugasson commented Apr 2, 2020

This is still an issue with Android and Windows applications.

Not only, also GNU/Linux app is affected.

@diegolmello diegolmello transferred this issue from RocketChat/Rocket.Chat.Android Apr 2, 2020
@diegolmello
Copy link
Member

Hey, I transferred this issue to the new repo.

@raffaeler
Copy link

Is this feature working on any client? I can't make it work on any client (web, desktop and android)
TIA

@phriedrich
Copy link
Contributor

@raffaeler Yes, it's working for me in the web version. (It has to be enabled in the settings under messages.)

But it's not supported in the mobile app.

@raffaeler
Copy link

thank you @phriedrich. The option is enabled in Messages but I can't make it work from the web.
Could you please type here an example so that I am not misunderstanding the KaTex syntax?
Thank you

@phriedrich
Copy link
Contributor

The example up in this thread here works for me with the same syntax:

Bildschirmfoto 2020-05-28 um 14 44 02
But it's also possible to set the syntax from \[KaTeX Block\] to $$KaTeX Block$$:
Bildschirmfoto 2020-05-28 um 14 45 05

If you can't get KaTeX working at all, this is probably more a question for Rocket.Chat itself, and not for the mobile app.

@raffaeler
Copy link

Thanks but the syntax with the square bracked does not work.
I enabled the Dollar syntax and it works.
The strange thing is that when I enable the Dollar syntax the square bracket syntax gets swallowed.

It may be a bug. I am using version 3.2.2

@kdev
Copy link

kdev commented Dec 26, 2020

Upvoting this for implementation

@no-trick-pony
Copy link

I am a bit confused: Why would you implement this and display it in the UI directly below the chat input at the same level as bold, italic or inline code when it is basically broken in all of your own mobile clients?

@johncrisp
Copy link

Hi,

So the situation here is complex.

First thing to note is that the mobile app is not 'broken'. However, the specific functionality you require is not yet implemented.

It's not implemented because Katex uses web stuff to render the math operations.

As a result we'd need to either create a native module to do that, or try to embed a webview into the message component.

It is on our long term road map to look at this, but it is not at top of the list for priority right now I'm afraid.

I'll leave this issue open accordingly.

Thanks.

@66Leo66
Copy link

66Leo66 commented Jan 9, 2022

As a result we'd need to either create a native module to do that, or try to embed a webview into the message component.

There's modules that could render KaTeX without using webview but svg instead. Check https://www.npmjs.com/package/react-native-math-view

By the way, as this issue causes a mess on native clients when reading messages with KaTeX, why is it "not at top of the list for priority right now "?

Looking forward to a fix!

@ankar84
Copy link
Contributor

ankar84 commented Apr 27, 2022

Still not implemented in latest Rocket chat React Native mobile app
Web client
image
Mobile client
image

@ankar84
Copy link
Contributor

ankar84 commented Jul 21, 2022

@GleidsonDaniel hey!
Strange, but looks like Katex still not supported in new 4.29 version
Mobile cleint 4.29.0.34197 (iOS)
image
Web client
image

Or it will be implemented in next 4.30 release?

@diegolmello
Copy link
Member

Possibly related to RocketChat/fuselage#775?

@dnlsilva
Copy link
Contributor

dnlsilva commented Jul 21, 2022

It's working, you're probably just using an outdated version, given that PR was merged 16 hours ago and version 4.29.0.34197 came out 3 days ago :)

Screen Shot 2022-07-21 at 10 14 35

Yes, it will be available in the next version.

@pegonma
Copy link

pegonma commented Feb 11, 2023

I am using the RocketChat Android app (version 4.35.1.37443) and latex formulas are not rendered on the map (neither with the syntex ( ) nor with [ ]). While it is rendered on the web app, so this does not seem to a problem with the setting of our server (provided by our university).

@GleidsonDaniel I am confused, which app/device are you using?

(My server is chat.univ-lille.fr and the server version is 3.15.2).

@dnlsilva
Copy link
Contributor

I am using the RocketChat Android app (version 4.35.1.37443) and latex formulas are not rendered on the map (neither with the syntex ( ) nor with [ ]). While it is rendered on the web app, so this does not seem to a problem with the setting of our server (provided by our university).

@GleidsonDaniel I am confused, which app/device are you using?

(My server is chat.univ-lille.fr and the server version is 3.15.2).

@pegonma the problem in your cause is probably your server version.

@pegonma
Copy link

pegonma commented Feb 17, 2023

@GleidsonDaniel Is it really possible? That the server allows the desktop client to render KaTeX formulas but not the mobile app? Can you tell me what is the latest server version? So I can ask the IT of my uni to update it.

@dnlsilva
Copy link
Contributor

@GleidsonDaniel Is it really possible? That the server allows the desktop client to render KaTeX formulas but not the mobile app? Can you tell me what is the latest server version? So I can ask the IT of my uni to update it.

@pegonma After version 5.0 of the server we changed the way messages are rendered and tagged and in this version we added support for katex.
Before that the app never had katex support.

So, as I said, to work katex in the mobile app you must have a server running above version 5.0 and as your server is in version 3.15.2 it will not work.

@pegonma
Copy link

pegonma commented Feb 17, 2023

@GleidsonDaniel thank you very much for your answer!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.