[Feedback]: Render LaTeX math in assistant messages
Ninguém assumiu esta issue ainda.
Avaliação
- Dificuldade
- 4/5
- Tempo estimado
- 3-5 dias
- Facilidade para iniciantes
- 48/100
Direção de pesquisa
Start by locating the chat view’s Markdown rendering pipeline and checking how assistant messages are rendered; the issue names no files or tests. Assess how math support and a locally vendored KaTeX bundle fit the app, including the optional setting and terminal CLI fallback. Done means inline and block math render as intended, the bundle works offline, and the setting or CLI behavior is covered.
Escrita pelo modelo de indexação a partir do texto da issue.
Descrição
What problem are you trying to solve?
Assistant replies that contain LaTeX math are shown as raw source in the chat view. For STEM
conversations this defeats the purpose of the answer: a derivation that should read as stacked
fractions and integrals comes out as literal \int_0^T, \frac{N_0}{2}, $$...$$.
Repro: ask for the proof of Cov(z_I, z_Q) = 0 for white Gaussian noise. The reply contains
integrals, fractions and aligned equations; all of them render as source text.
Workaround today is to ask the model to rewrite every formula in Unicode plain text
(e.g. "∫₀ᵀ", "N₀/2"). That works for simple expressions but loses stacked fractions,
sub/superscripts and aligned derivations, and it wastes tokens on reformatting.
What would improve it?
Render math in the markdown pipeline — remark-math + rehype-katex (or equivalent) — for both
inline $...$ and block $$...$$, with the KaTeX bundle vendored locally so it works offline.
A settings toggle (default on) would be good, since not every user wants it.
For the terminal CLI, a lighter option is acceptable: detect $...$ / $$...$$ and either
render a Unicode fallback or leave the source as-is with a visible hint.
What do you do today?
- Rewrite formulas in Unicode plain text via a follow-up prompt.
- Export the explanation to a .md file and preview it in VS Code (built-in KaTeX).
- Publish a standalone HTML page with KaTeX and read it in the browser.
Product area
None
- Linguagem predominante
- Shell
- Estrelas
- 110
- Forks
- 9
- Merge médio
- 12min
- PRs com merge (30d)
- 1
Preparar o ambiente
Este projeto não oferece contêiner de desenvolvimento, Dockerfile nem guia de contribuição, então a configuração fica por sua conta: comece pelo README e veja nosso guia da primeira contribuição para os passos gerais.
Primeiros passos
- Leia a issue inteira e depois o guia de contribuição do projeto.
- Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
- Faça um fork do repositório e trabalhe em uma branch.
- Abra um pull request que referencie o número da issue.
Mais de CommandCodeAI/desktop
-
[Bug]: v0.1.61 fails to initialize preload script due to system memory information error on LinuxAbertabug
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
CommandCodeAI/desktop#167 ·
-
bug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 56/100
CommandCodeAI/desktop#166 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
CommandCodeAI/desktop#164 ·
-
enhancement
Dificuldade 5/5 Mais de uma semana Facilidade para iniciantes 35/100
CommandCodeAI/desktop#162 ·
-
[Bug]: Attaching documents and images in the initial prompt does not seem to work with a skill.Abertabug
Dificuldade 3/5 1-2 dias Facilidade para iniciantes 55/100
CommandCodeAI/desktop#161 ·
Todas as issues de CommandCodeAI/desktop
Issues semelhantes
-
S3: friction & debt ws:testing
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 72/100
MedakaLang/medaka#5184 ·
Mantenedores costumam responder em até 1 dia
-
Link Checker ReportAbertaautomated issue report
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 78/100
a2aproject/A2A#2445 ·
Mantenedores costumam responder em até 2 dias
-
Dificuldade 1/5 Menos de uma hora Facilidade para iniciantes 70/100
-
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 75/100
MadiroGlobalHealth/UVL-EMR#580 ·
Mantenedores costumam responder em até 1 dia
-
Storage with Nitro Sandboxes: clarify which CSI volumes are supported (third-party NFS volumes fail)Aberta
Dificuldade 2/5 1-3 horas Facilidade para iniciantes 68/100
awsdocs/amazon-eks-user-guide#1259 ·