vindree icon

md-reader columnate printout

vindree | PRO | 09/04/25 03:06:25 AM UTC | 0 ⭐ | 8386 👁️ | Never ⏰ | [CSS]
CSS |

1.46 KB

|

None

|

0 👍

/

0 👎

/*
    https://md-reader.github.io
    https://patchworkpaladin.com/2025/05/26/pretty-printing-in-obsidian 
*/
 
@media print {
 
    body {
        column-count: 2;
        column-gap: 2em;
        line-height: 1.4;
        /* font-family: 'Scaly Sans', sans-serif; */
    }
 
    /* Remove margin from the first block element if it's a common type */
    body > :first-child {
        margin-block-start: 0 !important;
    }
 
    p {
        widows: 3;
        orphans: 3;
    }
 
    h2, h3, h4, h5, h6 {
        page-break-after: avoid;
        page-break-inside: avoid;
    }
 
    h1 {
        letter-spacing: 0.1em;
        /* font-size: 3em; */
        /* break-before: page; */
        column-span: all;
        /* text-align: center !important; */
        /* color: #006400 !important; */
        /* text-transform: uppercase !important; */
    }
 
    ul, ol {
        page-break-inside: avoid;
    }
 
    li {
        page-break-inside: avoid;
    }
 
    table {
        break-inside: avoid;
        page-break-inside: avoid;
    }
 
    .callout {
        break-inside: avoid;
        page-break-inside: avoid;
    }
    blockquote {
        break-inside: avoid;
        page-break-inside: avoid;
    }
 
    .internal-embed {
        column-span: all;
        border: none;
        box-shadow: none;
        margin: 1em 0;
        padding: 0;
    }
    .internal-embed .markdown-embed-title {
        display: none;
    }
 
}

Comments