From e54cd44714d0a6c6084eba6c386bf5531f07c433 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Wed, 6 Nov 2024 18:24:49 +0100 Subject: [PATCH] fix code blocks --- static/css/markdown.css | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/static/css/markdown.css b/static/css/markdown.css index e339e6c..38d0659 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -180,37 +180,37 @@ pre:has(code.language-mermaid) { } /* Tables */ -table { +table:not(.hljs-ln) { border-collapse: collapse; margin-inline: auto; } -th, -td { +table:not(.hljs-ln) th, +table:not(.hljs-ln) td { padding: 5px; border: 1px solid var(--separator-color); } -th { +table:not(.hljs-ln)th { border-bottom: 2px solid var(--separator-color); } /* No borders on the outer edges of the table */ -table tr:last-child td { +table:not(.hljs-ln) tr:last-child td { border-bottom: 0; } -table tr:first-child th { +table:not(.hljs-ln) tr:first-child th { border-top: 0; } -table tr td:first-child, -table tr th:first-child { +table:not(.hljs-ln) tr td:first-child, +table:not(.hljs-ln) tr th:first-child { border-left: 0; } -table tr td:last-child, -table tr th:last-child { +table:not(.hljs-ln) tr td:last-child, +table:not(.hljs-ln) tr th:last-child { border-right: 0; }