Question card options show LaTeX as raw source, though the question text renders it
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 2/5
- 预计耗时
- 1-3 小时
- 新手友好度
- 76/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- typescript
- 领域
- frontend
调研方向
从 ComposerPendingUserInputPanel.tsx 开始:问题文本在第 261 行左右经过 ChatMarkdown,而 option.label 和 option.description 在第 294-302 行左右是纯 span 文本。检查 MarkdownMath 在 ChatMarkdown 中的应用方式,以及选项字段能否使用相同的处理路径。完成标准是:开启 Render math 时,包含 $...$ 的问题选项会排版为数学公式,而普通选项仍保持原样显示。
由索引模型根据 Issue 内容生成。
描述
[!NOTE]
🤖 Drafted by Claude on behalf of a T3 Code user
Area
apps/web, ComposerPendingUserInputPanel.tsx (as of 65057562b)
What happens
With Settings → Appearance → Render math on, a question card (AskUserQuestion) typesets LaTeX in the question text but shows it as raw source in every option label and description.
Steps to reproduce
- Turn on Render math.
- Have the agent ask a question whose text and options both contain math, e.g. question
What does $\sum_{n=1}^{\infty} \frac{1}{2^n}$ equal?with options$1$,$2$,$\frac{1}{2}$,$+\infty$.
Expected
Options typeset like the question does.
Actual
The question renders correctly. The options show $\frac{1}{2}$ and similar raw source.
Likely cause
The question goes through <ChatMarkdown> (line ~261). option.label and option.description are rendered as plain <span> text (lines ~294–302), so they never reach MarkdownMath.
Why it matters
I use question cards for multiple-choice study drills (maths). The options are where the math lives, so the card can't be used for STEM quizzes without workarounds.
- 主要语言
- TypeScript
- 星标
- 24.8k
- 派生
- 6.4k
- 平均合并
- 59 分钟
- 30 天内合并 PR
- 418
环境准备
在浏览器里用你自己的 GitHub 账号启动这个项目的开发容器。
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
pingdotgg/t3code 的其他 Issue
-
难度 2/5 1-3 小时 新手友好度 66/100
维护者通常 1 天内回复
-
via-triage
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
-
难度 2/5 半天 新手友好度 68/100
维护者通常 1 天内回复
-
[Bug]: Settings inheritance popover shows raw slugs for branch naming, default permissions and response streaming可能已有人在做 @juliusmarminge 于 1 天前认领。 未关闭vouch:denounced
难度 2/5 1-3 小时 新手友好度 84/100
维护者通常 1 天内回复
-
[Bug]: Message navigation minimap shows a visible vertical track line on custom themes with an opaque border color可能已有人在做 @ixmxvii-hash 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 82/100
维护者通常 1 天内回复
相似的 Issue
-
Resources: Update work of urumqi可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 65/100
railmapgen/rmp-gallery#4176 ·
维护者通常 2 天内回复
-
GraphQL custom headers duplicate differently cased default headers可能已有人在做 @yxr-2025 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 70/100
维护者通常 1 天内回复
-
enhancement sharing & sync
难度 1/5 1 小时以内 新手友好度 62/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
HelpCode-ai/anythingmcp#1659 · 1 条评论 ·
维护者通常 1 天内回复
-
bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复