Skip to content

跟Agent对话时返回结果数学符号并未渲染 #30

Description

@pophirasawa

当前 Codex/外部 Agent 返回的消息里会包含标准 LaTeX 数学定界符,例如:

假设 \(q,k,v\in\mathbb R^d\),那么:

\[
v_tk_t^\top\in\mathbb R^{d\times d},\qquad
S_t\in\mathbb R^{d\times d},\qquad
S_tq_t\in\mathbb R^d
\]

Codex session 原始 JSONL 中保留了 \(\)\[\],但 Flowix 的 agent thread card 当前用普通 Markdown renderer 渲染消息。结果这些 LaTeX 定界符会被 Markdown escape 处理,最终显示成普通 ()[],公式不会渲染。

这样对话时会影响阅读数学公式或者算法类回复。

同时还想要支持可以快速复制原始Latex的功能方便编辑公式

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions