Skip to content

[Bug]: HTML formatting all in one line, doesnt continue to the second #8801

@ZijieSong123

Description

@ZijieSong123

Issue Checklist

  • I understand that issues are for feedback and problem solving, not for complaining in the comment section, and will provide as much information as possible to help solve the problem.
  • My issue is not listed in the FAQ.
  • I've looked at pinned issues and searched for existing Open Issues, Closed Issues, and Discussions, no similar issue or discussion was found.
  • I've filled in short, clear headings so that developers can quickly identify a rough idea of what to expect when flipping through the list of issues. And not "a suggestion", "stuck", etc.
  • I've confirmed that I am using the latest version of Cherry Studio.

Platform

Windows

Version

v1.5.4

Bug Description

Basically, the html formatting inside markdown is all in one line, it doesnt wrap down to the second line.

Image

But this is the actual code:

<span style="background-color: yellow">This is an extremely long line of text that is highlighted with a yellow background. It's designed to demonstrate a single, continuous stream of HTML content without any line breaks or special formatting other than the inline style for highlighting, making it one very wide and visually emphasized element when displayed. This could be used for banners, status messages, or any scenario where a single, attention-grabbing, highlighted line is desired for a specific purpose on a webpage, stretching across the available width if not constrained by parent elements. This line just keeps going and going and going, much like the energizer bunny of text, never stopping, just moving along in one continuous flow, filling up space and demanding attention with its bright background. Isn't it just an incredibly, remarkably, phenomenally long stretch of text, all on one big, glorious yellow-highlighted line? Truly a sight to behold, a testament to the power of a single span tag and inline CSS to create a statement that occupies a truly significant horizontal dimension within the browser's rendering capabilities.</span>

Steps To Reproduce

Just write a prompt that says: Output a very long line of hightlighted html text directly output it no code box, and the issue will occur.

Expected Behavior

It should wrap around to the second line like normal non-html text.

Relevant Log Output

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    BUGCategorizes issue or PR as related to a bugUI/UX

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions