HarlonWang / HarlonWang/TrendingAI

chat: AI 回答中的 LaTeX 公式未渲染,源码原样露出

Open
#116 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Kotlin
Stars
257
Forks
10
Avg merge
2h 40m
Merged PRs (30d)
29

Description

AI 回答里的数学公式(`\[...\]` / `\(...\)` 定界的 LaTeX)未渲染:聊天页 markdown 渲染层没有数学语法支持,commonmark 解析还会吃掉 `\[` 的反斜杠,最终显示的是 `[ \frac{人数\times(人数-1)}{2} ]` 一类源码乱码。

2026-08-29 真机自测发现。

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the chat page's Markdown rendering layer and reproduce the issue with both \[...\] and \(...\) delimiters, including the reported fraction. Done means LaTeX math is rendered in AI answers and the CommonMark parser no longer exposes the delimiters or raw formula source.

Written by the indexing model from the issue text.

Assessment

Tech stack
kotlin
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.