Skip to content

Commit a551778

Browse files
hide empty table headers
1 parent c2070bf commit a551778

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

src/css/custom.css

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,3 +197,12 @@ article a {
197197
.theme-admonition-info [class*='admonitionIcon'] svg {
198198
fill: var(--ifm-color-primary);
199199
}
200+
201+
/* Some reference tables are two-column label/value pairs with no meaningful
202+
heading. Markdown has no way to write a table without a header row, so those
203+
are written with blank cells -- which still render as an empty band above the
204+
table. Hide the header when every cell in it is blank; tables with real
205+
headings are untouched. */
206+
.markdown table thead:not(:has(th:not(:empty))) {
207+
display: none;
208+
}

0 commit comments

Comments
 (0)