From 30a5dca5980003f173cb5bb1dc41a50fbdae3fea Mon Sep 17 00:00:00 2001 From: Patrick Wehbe <50799614+patrickwehbe@users.noreply.github.com> Date: Sun, 21 Jun 2026 02:36:52 +0300 Subject: [PATCH] docs: fix TableView empty state example dropping TableBody tag (#10233) The empty state example for S2 TableView had two `- begin highlight -` markers around a single block (one before `` and a second, redundant one inside the opening tag) but only one `- end highlight -`. The code highlighter in `Code.tsx` (`lines()`) starts a new highlight grouping on each `begin` marker and resets the current line, with no guard for an already-open grouping. The second `begin` therefore discarded the already-accumulated `` opening tag, producing invalid JSX. Removing the redundant inner marker leaves the canonical single begin/end pair so the full `` tag renders and the example compiles in StackBlitz. Closes #10231 Co-authored-by: Patrick Wehbe --- packages/dev/s2-docs/pages/s2/TableView.mdx | 1 - 1 file changed, 1 deletion(-) diff --git a/packages/dev/s2-docs/pages/s2/TableView.mdx b/packages/dev/s2-docs/pages/s2/TableView.mdx index b41064e81b1..ed3e611c2f3 100644 --- a/packages/dev/s2-docs/pages/s2/TableView.mdx +++ b/packages/dev/s2-docs/pages/s2/TableView.mdx @@ -363,7 +363,6 @@ import FolderOpen from '@react-spectrum/s2/illustrations/linear/FolderOpen'; {/*- begin highlight -*/} (