4

修复语雀的公式格式问题的 css

 2 years ago
source link: https://www.codewoody.com/posts/30218/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
Published Nov 15, 2021

修复语雀的公式格式问题的 css

语雀的排版有点抽风了,公式比正文字体大两个号。可以在 Chrome 上安装 “User Javascript and CSS” 这个插件,修改语雀自带的 CSS。

这里列出需要的设置的 css 内容:

.ant-tree-list,
#article-title,
.lake-title-editor,
.ne-engine,
.ne-viewer .ne-viewer-body {
font-family: "Biaodian Pro Sans GB", "Times New Roman", "GenYoMin TW",
"Source Han Serif K", "思源宋体", "Source Han Serif SC", "Source Han Serif",
source-han-serif-sc, serif;
}

ne-card[data-card-name="math"][data-card-type="inline"] {
vertical-align: baseline;
transform: translate(0, -2px);
}

ne-card[data-card-name="math"][data-card-type="inline"] img {
zoom: 0.7;
}

ne-card[data-card-name="yuqueInline"] {
transform: translate(0, 2px);
}

.ne-typography-classic ne-code ne-text {
font-size: 90%;
}

ne-p {
margin-bottom: 0.5em;
margin-top: 0.5em;
}

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK