fix(803-2a): 수식 편집기 쉼표 글 꼴(「a, b」)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-07 21:09:03 +09:00
co-authored by Claude Opus 5.5
parent f5545dd62b
commit 9f969f0c3f
+1 -1
View File
@@ -176,7 +176,7 @@ export function toLinear(items: Item[]): string {
const go = (list: Item[]): string =>
list
.map((it) => {
if (it.t === "ch") return OPS.has(it.c) ? ` ${it.c} ` : it.c;
if (it.t === "ch") return it.c === "," ? ", " : OPS.has(it.c) ? ` ${it.c} ` : it.c;
if (it.t === "frac") return `(${go(it.num)}) / (${go(it.den)})`;
if (it.t === "paren") return `(${go(it.body)})`;
const body = go(it.body).trim();