element-hq / element-hq/element-web
failing to render LaTeX including Unicode 𝟙
- Dominant language
- TypeScript
- Stars
- 13.5k
- Forks
- 2.8k
- PR merge metrics
- PR metrics pending
Description
### Description
Passing a Unicode «𝟙» to KaTeX makes rendering of the whole message fail.
This is most likely KaTeX's fault, since it only claims support for Unicode-Input of double-struck letters, not numbers. (And LaTeX itself does not support $\mathbb{1}$.)
Maybe Element could instead of failing the whole message just mark that specific math-segment as an error (just like incorrect LaTeX $\someunknowncommand{1}$ is currently handled):

### Steps to reproduce
- enable «Render LaTeX maths in messages» in Labs
- send «$𝟙$» as a text message to a room
Element Web with «Render LaTeX maths in messages» displays «Can't load this message (m.room.message) Submit logs» inplace of the message just send.

Disabling «Render LaTeX maths in messages» displays the Unicode.

Logs being sent: yes (using the link in the failure message, not through the «Help & About» tab)
### Version information
- **Platform**: Flatpak on GNU Guix
- **Version**: 1.7.31
Contributor guide
Assessment
This issue has not been assessed yet.