style(webui): simplify Markdown code blocks (#5002)

This commit is contained in:
chengyongru
2026-07-20 14:41:23 +08:00
committed by GitHub
parent 949cfad548
commit 76f3eead42
3 changed files with 51 additions and 52 deletions
@@ -163,7 +163,8 @@ describe("MarkdownTextRenderer", () => {
);
expect(screen.getByText("code without language")).toBeInTheDocument();
expect(screen.getByText("text")).toBeInTheDocument();
expect(screen.queryByText("text")).not.toBeInTheDocument();
expect(container.querySelector(".not-prose")).toHaveAttribute("data-language", "text");
expect(container.querySelectorAll("pre")).toHaveLength(1);
});