Skip to content

[Bug]: Issue with Markdown Code Blocks Breaking Frontend Layout #5789

Open
@Peterson047

Description

@Peterson047

Is there an existing issue for the same bug?

  • I have checked the existing issues.

RAGFlow workspace code commit ID

d683644

RAGFlow image version

0.17.0

Other environment information

Windows 11
12gb
i7 11ºgen

Actual behavior

When the model generates a Markdown code block without line breaks, it affects the frontend by forcing the screen width to expand according to the length of the code line. This can misalign the layout, reduce responsiveness, and make content harder to view.

Notice the long horizontal scroll bar and the missing side menu

Image

Expected behavior

No response

Steps to reproduce

Ask the model to generate a single line block of code.

Additional information

No response

Metadata

Metadata

Assignees

Labels

🐞 bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions