fix: single dollar sysmpol

This commit is contained in:
2026-03-12 23:20:14 +08:00
parent ff82021467
commit aee1a1bf3b
3 changed files with 7 additions and 8 deletions

View File

@@ -265,7 +265,7 @@ class GLMResultFormatter:
# Formula wrapping
if label == "formula":
content = content.strip()
for s, e in [("$$", "$$"), (r"\[", r"\]"), (r"\(", r"\)")]:
for s, e in [("$$", "$$"), (r"\[", r"\]"), (r"\(", r"\)"), ("$", "$")]:
if content.startswith(s):
content = content[len(s) :].strip()
if content.endswith(e):