From a4edf92e0555d8b51fc8f12f4da567bc39ba6366 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Sun, 17 Nov 2024 19:03:49 +0100 Subject: [PATCH] prevent figure splitting --- static/css/markdown.css | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/static/css/markdown.css b/static/css/markdown.css index 38d0659..95116f5 100644 --- a/static/css/markdown.css +++ b/static/css/markdown.css @@ -245,4 +245,11 @@ table:not(.hljs-ln) tr th:last-child { .footnote-ref > a { text-decoration: none; } + + /* Prevent figures from splitting accross pages */ + article *:has(img), + table:not(.hljs-ln), + table:not(.hljs-ln) > * { + page-break-inside: avoid; + } }