From 3e5ac643a767c38ea210dbb5fbec417fac07c7f7 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 6 Nov 2024 15:46:27 +0100 Subject: [PATCH] table support --- static/css/markdown.css | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) diff --git a/static/css/markdown.css b/static/css/markdown.css index 7e17c1f..3470129 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -179,6 +179,40 @@ pre:has(code.language-mermaid) { text-align: center; } +/* Tables */ +table { + border-collapse: collapse; +} + +th { + border-bottom: 2px solid var(--separator-color); +} + +th, +td { + padding: 5px; + border: 1px solid var(--separator-color); +} + +/* No borders on the outer edges of the table */ +table tr:last-child td { + border-bottom: 0; +} + +table tr:first-child th { + border-top: 0; +} + +table tr td:first-child, +table tr th:first-child { + border-left: 0; +} + +table tr td:last-child, +table tr th:last-child { + border-right: 0; +} + @media print { /* Better colors for paper */ blockquote {