目标:
//设置预览界面
.markdown-preview-view{
font-family:"Segoe UI Emoji","更纱黑体 SC","Noto Sans CJK SC";
line-height:1.6;
}
// 设置编辑界面
.markdown-source-view{
font-family: "等距更纱黑体 SC","Segoe UI Emoji","Noto Sans Mono CJK SC", monospace;
text-align: justify;
hyphens: auto;
}
:root {
--text-font-family: "Segoe UI", "Segoe UI Emoji", "Segoe UI Symbol",
"更纱黑体 SC", "Noto Sans CJK SC", sans-serif;
--mono-font-family: "等距更纱黑体 SC", "Segoe UI Emoji",
"Noto Sans Mono CJK SC", sans-serif;
}
/* PREVIEW MODE */
div.markdown-preview-view,
.markdown-preview-view {
font-family: var(--text-font-family);
line-height: 1.6;
font-size: 16px;
text-align: justify;
hyphens: auto;
}
/* Edit Mode */
.cm-s-obsidian,
.markdown-source-view {
font-family: var(--text-font-family);
line-height: 1.6;
font-size: 16px;
}
/* TABLE, CODEBLOCK */
.CodeMirror pre.HyperMD-table-row,
pre code,
.markdown-preview-view code,
.cm-s-obsidian pre.HyperMD-codeblock,
.cm-inline-code {
font-family: var(--mono-font-family) !important;
line-height: 1.5em;
font-size: 15px;
}
1
liangch 2021-03-13 20:35:27 +08:00
对于 mac 来说,中文字体没有问题。
|