File tree Expand file tree Collapse file tree
packages/plugin-markdown/src Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -128,6 +128,18 @@ const CSS = `
128128.dark .os-markdown .markdown-alert-important .markdown-alert-title { color: #ab7df8; }
129129.dark .os-markdown .markdown-alert-warning { border-left-color: #d29922; }
130130.dark .os-markdown .markdown-alert-warning .markdown-alert-title { color: #d29922; }
131+
132+ /* Bordered tables: @tailwindcss/typography zeroes padding on each row's
133+ first (inline-start) and last (inline-end) cell because it assumes
134+ borderless tables. We add cell borders (prose-th/td:border), so restore
135+ symmetric horizontal padding — otherwise the first column's text sits
136+ flush against the left border, misaligned with every other column. The
137+ 0.6666667em matches prose-sm's inner-cell padding. The .os-markdown
138+ class selector outranks typography's zero-specificity :where() rules. */
139+ .os-markdown table th:first-child,
140+ .os-markdown table td:first-child { padding-inline-start: 0.6666667em; }
141+ .os-markdown table th:last-child,
142+ .os-markdown table td:last-child { padding-inline-end: 0.6666667em; }
131143`
132144
133145/**
You can’t perform that action at this time.
0 commit comments