fix escape of \ for katex expressions