Add warning box

Signed-off-by: Kévin Commaille <zecakeh@tedomum.fr>
This commit is contained in:
Kévin Commaille 2024-05-08 18:27:21 +02:00
parent 0ed05f2a61
commit dfbd2e27d3
No known key found for this signature in database
GPG key ID: 0C971D9DBC9D678D

View file

@ -429,6 +429,15 @@ representation instead. Clients SHOULD, however, aim to support, at minimum, the
basic LaTeX2e maths commands and the TeX maths commands, with the possible basic LaTeX2e maths commands and the TeX maths commands, with the possible
exception of commands that could be security risks. exception of commands that could be security risks.
{{% boxes/warning %}}
Certain commands, such as [those that can create macros](https://katex.org/docs/supported#macros),
are potentially dangerous. Clients should either decline to process those
commands, or should take care to ensure that they are handled in safe ways (such
as by limiting recursion). In general, LaTeX commands should be filtered by
allowing known-good commands rather than forbidding known-bad commands. Some
LaTeX libraries may have options for doing this.
{{% /boxes/warning %}}
#### Server behaviour #### Server behaviour
Homeservers SHOULD reject `m.room.message` events which don't have a Homeservers SHOULD reject `m.room.message` events which don't have a