line-height和letter-spacing
我原来用marktext 里面所见即所得我觉得还挺好用的 但是因为有时不稳定 并且有时候疑似有点卡打算试试obsidian 发现obsidian原配置一点都不好看 而且我不喜欢编辑浏览模式切换
现在的方案是改行间距到差不多1行高度 配合easytyping一回车输入 两行 模拟原来marktext的体验
css配置 obsidian css参考
body {
font-family: Arial, sans-serif;
/* 设置优雅的字体 */
font-size: 21px;
font-weight: bold;
/* 设置字体大小 */
/* 设置行间距为字体高度的两倍 */
/* 设置文本颜色 */
/* 设置背景颜色 */
}
/* custom-line-height.css */
/* 设置行间距为 2em */
/* custom-line-height.css */
/* 设置预览模式下的行间距为 2em */
.markdown-preview-view{
line-height: 2em;
font-weight: initial;
letter-spacing: 1.2px;
}
/* 编辑模式下的行间距 */
.cm-s-obsidian .cm-line:not(.HyperMD-header){
line-height: initial;
font-weight: initial;
letter-spacing: 1.2px;
/* 行间距 */
}