- more LaTeX escaping

This commit is contained in:
Wiesner András 2024-09-27 13:54:55 +02:00
parent 8238fab8b7
commit ec61c42cfc

View File

@ -46,7 +46,7 @@ class TeXUtils
} }
static public function escape(string $str) : string { static public function escape(string $str) : string {
return preg_replace("/([#%&])/", "\\\\$1", $str); return preg_replace("/([$#%&_~])/", "\\\\$1", $str);
} }
} }