Identification: double backslashes were treated as two simple backslashes one after the other, causing the sanitizer to delete all backslashes in the math block.
Fix: two complementary fixes are submitted:
eat all leading backslashes of the command;
do not replace in the full math content, but locally.
Bug: fixes #471 .
Identification: double backslashes were treated as two simple backslashes one after the other, causing the sanitizer to delete all backslashes in the math block.
Fix: two complementary fixes are submitted: