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

Introduce Math & TeX Support in Telegram for Inline and Block-Level Formula Rendering #27925

Closed
us254 opened this issue May 16, 2024 · 1 comment

Comments

@us254
Copy link

us254 commented May 16, 2024

Is your feature request related to a problem?

Users who need to share complex mathematical expressions in Telegram currently lack built-in support for rendering LaTeX or TeX-based formulas.

  • Users have to resort to external tools to generate images of mathematical expressions, which are then shared in chats. This process is cumbersome and inefficient.

  • There is no native support for directly inputting and rendering mathematical formulas within Telegram messages, leading to reduced functionality for academic and professional users who rely on such features.

Describe the solution you'd like

Introduce Native Math & TeX Support:

1. Inline Math Formula Rendering:

  • Allow users to create and render inline math formulas directly within chat messages, utilizing LaTeX syntax.

2. Block-Level Math Formula Rendering:

  • Provide an option to enter block-level math formulas for more complex equations that require separate lines for better readability and presentation. Users can switch to this format through a command palette or a message format option.

3. Integration with KaTeX:

  • Use the KaTeX library to handle the rendering of LaTeX-based formulas. KaTeX is a fast and reliable library widely used for math rendering on the web.

4. User Interface Enhancements:

  • Implement a user-friendly interface for inputting formulas, including real-time previews and syntax validation to help users compose accurate formulas.

Describe alternatives you've considered

While users can continue using external tools to create images of formulas, this is not an ideal solution due to the added steps and potential for lower quality renders. Users can type mathematical expressions using plain text, which is not visually appealing and can be difficult to interpret correctly.

Additional context

By introducing Math & TeX support in Telegram, the platform will become significantly more valuable to users who need to share and discuss mathematical content, improving functionality and usability for educational and professional communication.

@Aokromes
Copy link
Collaborator

platform wide bugs / requests belongs to https://bugs.telegram.org/

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

No branches or pull requests

2 participants