diff --git a/src/mathed/math_parser.C b/src/mathed/math_parser.C index 35bc647dd2..5ab89b2747 100644 --- a/src/mathed/math_parser.C +++ b/src/mathed/math_parser.C @@ -302,6 +302,10 @@ int yylex() yylval.i = LM_OT_EQUATION; return LM_TK_END; } + if (c == '|') { + yytext = "|"; + return LM_TK_UNDEF; + } if (contains(latex_special_chars, c)) { yylval.i = c; return LM_TK_SPECIAL;