style(webui): simplify Markdown code blocks (#5002)
This commit is contained in:
1 parent
949cfad548
commit
76f3eead42
3 files changed
+51
-52
No files matched your search
@@ -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);
|
||||
});
|
||||
|
||||
|
||||
Reference in new issue
Block a user