markdown-preview-enhanced插件自带的css样式的效果我不是很满意,于是从新设计了以下适合我自己的:
/* Please visit the URL below for more information: */
/* https://shd101wyy.github.io/markdown-preview-enhanced/#/customize-css */
.markdown-preview.markdown-preview {
// modify your style here
// eg: background-color: blue;
*{
line-height: 22pt;
font-family: 'Consolas','宋体';
}
h1{
font-size: 20pt;
line-height: 21pt;
text-align: center;
font-family: Consolas, 'Courier New','Dengxian';
}
h2{
font-size: 18pt;
line-height:19pt;
text-align: center;
font-family: Consolas, 'Courier New','Dengxian';
}
h3{
font-size: 16pt;
line-height: 17pt;
font-family: Consolas, 'Courier New','Dengxian';
}
h4{
font-size: 14pt;
line-height: 15pt;
}
h5{
font-size: 14pt;
line-height: 13pt;
}
p{
font-size: 14pt;
line-height: 22pt;
font-family: Georgia,'宋体';
// font-family:'Segoe UI', Helvetica, Arial, sans-serif;
}
li{
font-size: 14pt;
font-family: Georgia,'宋体';
}
blockquote {
// margin-left: 1em;
padding-top: 3pt;
padding-bottom: 3pt;
border-radius: 5pt;
border-left: 3px solid #6CE26C;
background-color: rgba(240, 238, 238, 0.80);
}
code, pre {
font-family: Consolas,monospace !important;;
font-size: 12pt !important;
line-height: 12pt !important;
}
}