RSSNext / Follow

🧡 Next generation information browser.
https://follow.is
GNU General Public License v3.0
13.05k stars 554 forks source link

/ai/daily interface lacks necessary line breaks, causing rendering problems #934

Open leinad59 opened 3 days ago

leinad59 commented 3 days ago

Describe the bug

查看昨日热点页面 daily.tsxDailyReportContent 组件,因 /ai/daily 接口返回缺少必要的空行,故 markdown 缩进渲染异常:

image

相对来说,正常的情况是:

image


app info:

Environment

App Version: 0.0.1-alpha.21 OS: macOS User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Follow/0.0.1-alpha.21 Chrome/128.0.6613.162 Electron/32.1.2 Safari/537.36 Env: electron Browser: Chrome

Feed Info

IT 之家(41397633064960000): https://www.ithome.com/rss/ 财新网(41443203209057309): rsshub://caixin/latest 人人都是产品经理(53257967622553624): https://www.woshipm.com/feed 爱范儿(41461870201364484): https://www.woshipm.com/feed 即刻精选(62775983361374262):https://rss.goltech.top/telegram/channel/jike_collection/showLinkPreview=0&showViaBot=1&showReplyTo=0&showFwdFrom=0&showFwdFromAuthor=0&showInlineButtons=0&showMediaTagInTitle=1&showMediaTagAsEmoji=1&includeFwd=0&includeReply=1&includeServiceMsg=0&includeUnsupportedMsg=0

Reproduction Video

No response

App Type

Electron / App

Version

0.0.1-alpha.21

Operating System

macOS

Browser Info

No response

Validations

Contributions

linear[bot] commented 3 days ago

FOL-459 /ai/daily 接口返回的 md 缺少必要换行导致渲染的问题

github-actions[bot] commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

Describe the bug

Check the DailyReportContent component of yesterday's hot page daily.tsx. Because the /ai/daily interface returns a lack of necessary blank lines, the markdown indentation rendering is abnormal:

image

Relatively speaking, the normal situation is:

image


app info:

Environment

App Version: 0.0.1-alpha.21 OS: macOS User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS Env: electron Browser: Chrome

Feed Info

IT Home (41397633064960000): https://www.ithome.com/rss/ Caixin (41443203209057309): rsshub://caixin/latest Everyone is a product manager (53257967622553624): https://www.woshipm.com/feed Ai Faner (41461870201364484): https://www.woshipm.com/feed Instant selection (62775983361374262): https://rss.goltech.top/telegram/channel/jike_collection/showLinkPreview=0&showViaBot=1&showReplyTo=0&showFwdFrom=0&showFwdFromAuthor=0&showInlineButtons=0&showMediaTagInTitle=1&showMediaTagAsEmoji=1&include Fwd=0&includeReply=1&includeServiceMsg=0&includeUnsupportedMsg=0

Reproduction Video

No response

App Type

Electron/App

Version

0.0.1-alpha.21

Operating System

macOS

Browser Info

No response

Validations

Contributions

github-actions[bot] commented 3 days ago

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿

FOL-459 /ai/daily The md returned by the interface lacks necessary line breaks, causing rendering problems