Skip to content

Commit c2573ce

Browse files
committed
feat(#1038): 增加 Markdown 编辑器段落的间隔
1 parent 59b3bcb commit c2573ce

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

src/app/core/main/editor/markdown/style.css

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,14 @@
2727
height: 0;
2828
}
2929

30+
.tiptap-editor .tiptap.ProseMirror > p {
31+
margin: 0;
32+
}
33+
34+
.tiptap-editor .tiptap.ProseMirror > p:not(.is-empty) + p:not(.is-empty) {
35+
margin-top: 0.85em;
36+
}
37+
3038
/* 基础样式覆盖 */
3139
.tiptap-editor .ProseMirror h1 {
3240
font-size: 2em;

0 commit comments

Comments
 (0)