diff --git a/app/d/[slug]/CommentsShell.tsx b/app/d/[slug]/CommentsShell.tsx index 6c7f9bd..707ee1d 100644 --- a/app/d/[slug]/CommentsShell.tsx +++ b/app/d/[slug]/CommentsShell.tsx @@ -2,6 +2,7 @@ import { forwardRef, useCallback, useEffect, useMemo, useRef, useState } from "react"; import { buildChromePalette, type ThemeSample, type ChromePalette } from "@/lib/docs/theme"; +import CommentMarkdown from "@/lib/docs/comments/CommentMarkdown"; // CommentsShell — the THIRD React surface (birthday.md "Production // architecture", "CHOSEN: variant B"). The google-docs-style comment rail. The @@ -479,6 +480,7 @@ export default function CommentsShell(props: Props) { return (
");
+ expect(html).toContain("");
+ expect(html).toContain("");
+ expect(html).toContain("");
+ });
+
+ it("renders a GFM table", () => {
+ const html = render("| a | b |\n| - | - |\n| 1 | 2 |");
+ expect(html).toContain("");
+ });
+
+ it("neutralizes raw HTML — no live script element", () => {
+ const html = render("");
+ expect(html).not.toContain("