From 9ee2bf36cf7482fa531dedd6287141ac73883a05 Mon Sep 17 00:00:00 2001 From: "Daniel J. Geiger" <1852529+DanielJGeiger@users.noreply.github.com> Date: Fri, 30 Dec 2022 10:26:46 -0600 Subject: [PATCH] Render LaTeX matrices correctly in math-only mode. --- src/packages/extensions/ts/mathjax/implementation.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/packages/extensions/ts/mathjax/implementation.tsx b/src/packages/extensions/ts/mathjax/implementation.tsx index e188ed835..03ea5a676 100644 --- a/src/packages/extensions/ts/mathjax/implementation.tsx +++ b/src/packages/extensions/ts/mathjax/implementation.tsx @@ -343,7 +343,7 @@ const joinMath = ( }; const getMathNewline = (mathProps: MathProps) => { - return mathProps.useTex && mathProps.mathOnly ? "\\\\" : "\n"; + return mathProps.useTex && mathProps.mathOnly ? "\\newline" : "\n"; }; // This lets math input run across multiple newlines.