telegramdesktop / tdesktop

Telegram Desktop messaging app
https://desktop.telegram.org/
Other
26.22k stars 5.2k forks source link

math (katex) support #26963

Closed aarmn closed 1 year ago

aarmn commented 1 year ago

Is your feature request related to a problem?

after adding support for language syntax highlight, it just make sense to support katex math as well

Describe the solution you'd like

katex math syntax support with $$math$$ or $math$ or ```latex ``` or ```math ``` or ```katex ``` and rendering math in the msg box

Describe alternatives you've considered

sending image of the math formula

Additional context

No response

ilya-fedin commented 1 year ago

Syntax highlighting rules are outsourced to the prism.js library, it's not a part of tdesktop itself.