From 94e7f705e9901f51daab628ae2a532f53a7e1639 Mon Sep 17 00:00:00 2001 From: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> Date: Wed, 10 Apr 2024 07:53:10 +0000 Subject: [PATCH] Element: Disable annoying TeX matching TeX matching made it impossible to use multiple dollar signs in a message without escaping them. Now only LaTeX syntax (which is much less likely to be used accidentally) is accepted for math rendering. Regex from https://stackoverflow.com/a/2302992 Signed-off-by: wj25czxj47bu6q <96372288+wj25czxj47bu6q@users.noreply.github.com> --- srv/Matrix-Docker-Compose/element/config.json | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/srv/Matrix-Docker-Compose/element/config.json b/srv/Matrix-Docker-Compose/element/config.json index 349d2dc..c6896eb 100644 --- a/srv/Matrix-Docker-Compose/element/config.json +++ b/srv/Matrix-Docker-Compose/element/config.json @@ -41,13 +41,16 @@ "feature_jump_to_date": true, "feature_ask_to_join": true }, + "latex_maths_delims": { + "inline": { "pattern": { "tex": "^\\b$" } }, + "display": { "pattern": { "tex": "^\\b$" } } + }, "default_federate": true, "room_directory": { "servers": [ "arcticfoxes.net", "matrix.org", "grapheneos.org" - ] }, "enable_presence_by_hs_url": {