binary-husky / binary-husky/gpt_academic

[Bug]: 回答中latex公式和代码块不能共存

Open
#2,159 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
71.3k
Forks
8.3k
PR merge metrics
No merged PRs in 30d

Description

### Installation Method | 安装方法与平台

Docker(Windows/Mac)

### Version | 版本

Latest | 最新版

### OS | 操作系统

Windows

### Describe the bug | 简述

回答的latex格式公式,在只有latex格式公式的时候是正常显示的,但是一旦出现了代码块,就不能正常显示了。
以下是范例:

### Screen Shot | 有帮助的截图

![Image](https://github.com/user-attachments/assets/11930bd7-a75a-46a2-82e1-c40e86ba2c19)

### Terminal Traceback & Material to Help Reproduce Bugs | 终端traceback(如有) + 帮助我们复现的测试材料样本(如有)

_No response_

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file, test, or entry point is identified in the report. First reproduce the issue in the Windows Docker setup with a response containing both a LaTeX formula and a code block; done means both elements render correctly together.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.