Created
September 16, 2026 12:26
-
-
Save willsantos/5785bbe3daff7065e61b2433dd1b6d43 to your computer and use it in GitHub Desktop.
md to pdf style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| @page { | |
| size: A4; | |
| margin: 18mm 16mm; | |
| } | |
| html, | |
| body { | |
| font-family: Arial, sans-serif; | |
| font-size: 11pt; | |
| line-height: 1.5; | |
| color: #111; | |
| } | |
| * { | |
| box-sizing: border-box; | |
| } | |
| img { | |
| max-width: 100%; | |
| height: auto; | |
| } | |
| pre, | |
| code { | |
| white-space: pre-wrap; | |
| overflow-wrap: anywhere; | |
| } | |
| pre { | |
| padding: 12px; | |
| overflow: hidden; | |
| } | |
| table { | |
| width: 100%; | |
| border-collapse: collapse; | |
| table-layout: fixed; | |
| } | |
| th, | |
| td { | |
| padding: 6px 8px; | |
| vertical-align: top; | |
| overflow-wrap: anywhere; | |
| } | |
| h1, | |
| h2, | |
| h3 { | |
| page-break-after: avoid; | |
| break-after: avoid-page; | |
| } | |
| p, | |
| li, | |
| table, | |
| pre, | |
| blockquote { | |
| break-inside: avoid; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment