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; + } }