Skip to content

[Bug] html 处理导致代码块切分异常 #5557

@QAbot-zh

Description

@QAbot-zh

📦 部署方式

Vercel

📌 软件版本

v2.15.3

💻 系统环境

Windows

📌 系统版本

windows 10

🌐 浏览器

Chrome

📌 浏览器版本

127.0.6533.100

🐛 问题描述

当代码块为 html 的时候,会忽略结尾的 ``` 控制符,导致它被解析为下一个代码块进行渲染,和 artifacts 无关,关闭 artifacts 渲染也无法正确解析渲染:

image

Clip_2024-09-27_23-10-15

非 html 代码块,正常渲染:

image

image

📷 复现步骤

使用 ``` 控制符生成 html 代码块

🚦 期望结果

正常渲染,不要把正文渲染成代码块,提升可读性

📝 补充信息

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