ChatGPTNextWeb / ChatGPT-Next-Web

A cross-platform ChatGPT/Gemini UI (Web / PWA / Linux / Win / MacOS). 一键拥有你自己的跨平台 ChatGPT/Gemini 应用。
https://app.nextchat.dev/
MIT License
74.88k stars 58.95k forks source link

[Bug] Chinese contents with **bold marks** are not correctly rendered #4165

Closed hjkcai closed 5 months ago

hjkcai commented 6 months ago

Bug Description

See the screenshot below.

Screenshot_2024-02-28-23-13-55-748_com android chrome-edit

Steps to Reproduce

Make the chatbot response something with bold format. I was using Gemini.

Expected Behavior

Bold contents are correctly rendered.

Screenshots

No response

Deployment Method

Desktop OS

No response

Desktop Browser

No response

Desktop Browser Version

No response

Smartphone Device

Xiaomi 12S Pro

Smartphone OS

MIUI 14.0.11

Smartphone Browser

Chrome

Smartphone Browser Version

latest

Additional Logs

No response

H0llyW00dzZ commented 6 months ago

wait what, I don't encounter this issue; it operates correctly even on my forked versions.

H0llyW00dzZ commented 6 months ago

[!NOTE]
This issue could be associated with the react markdown package or might be due to unsupported features. There doesn't seem to be any problems related to formatting within the markdown.tsx code, except for persistent issues with LaTeX.

fred-bf commented 6 months ago

@hjkcai could you share the original prompt you are using? and which model you are using?

hjkcai commented 6 months ago

The original prompt is "列举5个react的优缺点". I am using gemini-pro model.

cypggs commented 6 months ago

me too,

image

貌似只有 gemini-pro 会这样,原始回答如下 `年化总回报率与标普 500 指数相当的指数:

纳斯达克 100 指数:代表美国 100 家最大的非金融类上市公司,年化总回报率约为 12%。 罗素 2000 指数:代表美国 2000 家规模较小的上市公司,年化总回报率约为 11%。 道琼斯工业平均指数:代表美国 30 家最大的上市公司,年化总回报率约为 9%。 MSCI 世界指数:代表全球 23 个发达国家和新兴市场的股票,年化总回报率约为 8%。 富时全球股票指数:代表全球 90 多个国家和地区的股票,年化总回报率约为 7%。 需要注意的是,这些回报率是历史数据,并不保证未来的业绩。股市可能会出现波动,回报率可能会因指数和投资期限而异。`

Issues-translate-bot commented 6 months ago

Bot detected the issue body's language is not English, translate it automatically.


me too,

image

It seems that only gemini-pro does this. The original answer is as follows `Indices with annualized total returns comparable to the S&P 500:

Nasdaq 100 Index: Represents the 100 largest non-financial public companies in the United States and has an annualized total return of approximately 12%. Russell 2000 Index:Represents 2,000 smaller publicly traded companies in the United States and has an annualized total return of approximately 11%. Dow Jones Industrial Average:Represents the 30 largest publicly traded companies in the United States and has an annualized total return of approximately 9%. MSCI World Index: Represents equities in 23 developed and emerging markets around the world and has an annualized total return of approximately 8%. FTSE Global Equity Index:Representing equities in more than 90 countries around the world, the annualized total return is approximately 7%. It's important to note that these returns are historical data and are not a guarantee of future performance. Stock markets can be volatile and returns may vary based on index and investment horizon. `

betgo commented 6 months ago

The issue pertains to the space before **

hjkcai commented 5 months ago

How is it going?

Dean-YZG commented 5 months ago

Currently supported, please use the latest version ~~