Created
October 18, 2023 21:27
-
-
Save bradthurber/40e5c25f416bb4166e6b373eadcae1a1 to your computer and use it in GitHub Desktop.
vscode markdown-pdf CSS mod to make inline comments use github style instead of ugly yellow. Update %USERPROFILE%/.vscode/externsions/yzne.markdown-pdf-1.5.0/styles/markdown-pdf.css
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
/* | |
* Markdown PDF CSS | |
*/ | |
body { | |
font-family: -apple-system, BlinkMacSystemFont, "Segoe WPC", "Segoe UI", "Ubuntu", "Droid Sans", sans-serif, "Meiryo"; | |
padding: 0 12px; | |
} | |
pre { | |
background-color: #f8f8f8; | |
border: 1px solid #cccccc; | |
border-radius: 3px; | |
overflow-x: auto; | |
white-space: pre-wrap; | |
overflow-wrap: break-word; | |
} | |
pre:not(.hljs) { | |
padding: 23px; | |
line-height: 19px; | |
} | |
blockquote { | |
background: rgba(127, 127, 127, 0.1); | |
border-color: rgba(0, 122, 204, 0.5); | |
} | |
.emoji { | |
height: 1.4em; | |
} | |
code { | |
font-size: 14px; | |
line-height: 19px; | |
} | |
/* for inline code */ | |
:not(pre):not(.hljs)>code { | |
padding: .2em .4em; | |
margin: 0; | |
font-size: 85%; | |
white-space: break-spaces; | |
background-color: #AFB8C133; | |
border-radius: 6px; | |
color: #1F2328; | |
} | |
/* Page Break : use <div class="page"/> to insert page break | |
-------------------------------------------------------- */ | |
.page { | |
page-break-after: always; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment