fix(803-2a): 수식 편집기 쉼표 글 꼴(「a, b」)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user