Last active
April 24, 2022 08:19
-
-
Save xuzh0u/178ffab9bac6c699424f5508cc1d0a8a to your computer and use it in GitHub Desktop.
Some configuration of the format issues when writing markdown docs.
This file contains 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
<!--Typora自用覆盖设置-灵感来源为体系结构实验报告要求--> | |
/*font-family*/ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: "Linux Libertine", "Times New Roman", "Source Han Sans CN", | |
"Simhei Regular"; | |
} | |
body, | |
p, | |
blockquote, | |
blockquote blockquote { | |
font-family: "Linux Libertine", "Times New Roman", "Source Han Serif CN", | |
"Simsun"; | |
} | |
code, | |
pre, | |
pre code, | |
.CodeMirror { | |
font-family: "Consolas", "Inconsolata", "Source Code Pro", "DejaVu Sans Mono", | |
"Source Han Sans CN"; | |
} | |
/*font-size*/ | |
h1 { | |
font-size: 18pt; | |
text-align: center; | |
} | |
h2 { | |
font-size: 15pt; | |
} | |
h3 { | |
font-size: 14pt; | |
} | |
h4 { | |
font-size: 12pt; | |
} | |
h5 { | |
font-size: 10.5pt; | |
} | |
body, | |
p { | |
font-size: 10.5pt; | |
} | |
.CodeMirror { | |
font-size: 9pt; | |
} |
This file contains 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
<!--很早之前的一个存档版本--> | |
/*font-family*/ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
font-family: | |
'Times New Roman', | |
'Simhei Regular', | |
} | |
body, | |
p, | |
blockquote, | |
blockquote blockquote { | |
font-family: | |
'Times New Roman', | |
'Simsun', | |
} | |
code, | |
pre, | |
pre code { | |
font-family: | |
'Consolas', | |
'Simhei Regular', | |
} | |
/*font-size*/ | |
/*1*/ | |
h2{ | |
font-size:15pt; | |
} | |
/*2*/ | |
h3{ | |
font-size:14pt; | |
} | |
/*3*/ | |
h4{ | |
font-size:12pt; | |
} | |
/*4*/ | |
h5{ | |
font-size: 10.5pt; | |
} | |
/*body*/ | |
body, | |
p{ | |
font-size:10.5pt; | |
} |
This file contains 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
/* | |
这是 typora 中导出文档的设置! | |
Print Mode and page breaks. | |
WkhtmlToPDF does not work on @print mode | |
*/ | |
@media (max-width: 210mm) { | |
img { | |
max-height: 8cm; | |
} | |
html { | |
font-size: 16px; | |
} | |
div[title="pb"], | |
page-break { | |
display: block; | |
page-break-after: always; | |
break-after: page; | |
} | |
nav { | |
font-size: 0.9rem; | |
page-break-after: always; | |
page-break-before: always; | |
} | |
nav a { | |
color: black; | |
} | |
/* Move top-level headings to a new page on the right-hand side: */ | |
h1, | |
h2 { | |
page-break-before: right; | |
break-before: recto; | |
} | |
/* Override the previous ruleset for the very first heading: */ | |
h1:first-of-type, | |
section > h1:first-child { | |
page-break-before: avoid; | |
break-before: avoid; | |
} | |
/* Headings should not be the last paragraph on a page: */ | |
h1, | |
h2, | |
h3, | |
h4, | |
h5, | |
h6 { | |
page-break-after: avoid; | |
} | |
/* Consecutive headings with deepening level should not be split across pages: */ | |
h1 + h2, | |
h2 + h3, | |
h3 + h4, | |
h4 + h5, | |
h5 + h6 { | |
page-break-before: avoid; | |
} | |
} |
This file contains 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
// mpe插件的配置, 我也不知道是啥时候的 | |
.markdown-preview.markdown-preview { | |
background-color: #ffffff; // #fdf6e3 ; | |
image-rendering: optimize; | |
font-family: "Source Han Sans CN", "Times New Roman"; | |
//'Segoe','STZhongSong Regular', 'Microsoft Jhenghei' | |
//'Source Han Serif CN Semibold' | |
image { | |
//height: 50%; | |
//width: 50%; | |
max-width: "50%"; | |
max-height: "50%"; | |
} | |
h1, | |
h2, | |
h3 { | |
font-family: "Source Han Sans CN Heavy", "Myriad Pro"; | |
//'STZhongSong Regular', 'Microsoft Yahei', 'Microsoft JhengHei' | |
text-indent: 0 em; | |
} | |
h4, | |
h5, | |
h6 { | |
font-family: "Source Han Sans CN Medium", "Myriad Pro"; | |
//'STZhongSong Regular', 'Microsoft Yahei', 'Microsoft JhengHei' | |
text-indent: 0em; | |
} | |
h1, | |
h2, | |
h3 { | |
color: #2c2c2c; | |
border-bottom: #363535; | |
} | |
h4, | |
h5 { | |
color: #464646; | |
border-bottom: #4a494b; | |
} | |
h1 { | |
font-size: 24px; | |
font-weight: 900; | |
margin: 1.2em auto; | |
border-bottom: 2.5px dotted; | |
} | |
h2 { | |
font-size: 21px; | |
padding-left: 10px; | |
padding-top: 5px; | |
margin: 1em auto; | |
border-left: 2.6px solid; | |
//border-right: : 1px solid; | |
border-top: 0.7px solid; | |
//border-bottom: 2.9px solid; | |
} | |
h3 { | |
font-size: 20px; | |
margin: 10px auto; | |
padding-left: 10px; | |
padding-top: 0.5px; | |
padding-bottom: 1px; | |
//text-align: center; | |
background-color: #374491; | |
color: white; | |
padding: 5px 15px; | |
border-radius: 1.3px; | |
//border-left: 2.5px solid; | |
} | |
h4 { | |
font-size: 19px; | |
padding-left: 10px; | |
padding-top: 1px; | |
margin: 10px auto; | |
//text-align: center; | |
border-bottom: 1.5px; | |
//border-left: 2.2px dotted; | |
} | |
h5 { | |
font-size: 17px; | |
margin: 10px auto; | |
padding-left: 10px; | |
padding-bottom: 1px; | |
border-left: 3px solid; | |
border-bottom: 1.5px double; | |
} | |
h6 { | |
font-size: 15px; | |
margin: 10px auto; | |
padding-left: 10px; | |
//border-left: 1.5px dotted; | |
background-color: #5c5c5c; | |
color: white; | |
padding: 5px 15px; | |
border-radius: 1px; | |
} | |
p, | |
body { | |
font-family: "Source Han Sans CN Regular"; | |
text-indent: 2em; | |
} | |
em { | |
font-style: normal; | |
font-family: "Source Han Sans CN Regular"; | |
color: #4880ca; | |
} | |
strong { | |
font-family: "Source Han Sans CN Heavy"; | |
color: #e74b1b; | |
} | |
h1.prefix, | |
h1.content, | |
h1.suffix, | |
h2.prefix, | |
h2.content, | |
h2.suffix, | |
h3.prefix, | |
h3.content, | |
h3.suffix, | |
h4.prefix, | |
h4.content, | |
h4.suffix, | |
h5.prefix, | |
h5.content, | |
h6.suffix, | |
h6.prefix, | |
h6.content, | |
h6.suffix, | |
body, | |
em, | |
p, | |
strong, | |
li, | |
table { | |
font-size: 13px; | |
} | |
block-equation svg { | |
max-width: 50%; | |
} | |
inline-equation svg { | |
max-width: 50%; | |
} | |
pre, | |
code { | |
font-family: "Consolas", "Cascadia code"; | |
text-indent: 0em; | |
} | |
blockquote { | |
font-family: "Source Han Sans CN Light", "Times New Roman"; | |
// 'STKaiti Regular', 'Microsoft Jhenghei','Source Han Serif CN Light' | |
border-left: 2.3px solid #3758b1; | |
border-right: 0px solid #888; | |
background-color: #dee0e94f; | |
padding-left: 1em; | |
color: rgb(48, 47, 47); | |
text-indent: 0em; | |
font-size: 12px; | |
} | |
} |
This file contains 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 三线表渲染支持-自用修正版--> | |
table > thead > tr > th { | |
border-top: 1.4px solid #000; | |
border-bottom: 0.9px solid #000; | |
} | |
table > tbody > tr:last-child { | |
border-bottom: 1.4px solid #000; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment