fix bug for \n in katex