Skip to content

Commit 4534625

Browse files
committed
modify: fix style for h1, h2 tag on markdown preview
1 parent 3e4342e commit 4534625

1 file changed

Lines changed: 11 additions & 1 deletion

File tree

browser/components/MarkdownPreview.js

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,9 +55,19 @@ code {
5555
font-family: ${codeBlockFontFamily.join(', ')};
5656
}
5757
58-
h1, h2, h3, h4 {
58+
h1, h2 {
5959
border: none;
6060
}
61+
62+
h1 {
63+
padding-bottom: 4px;
64+
margin: 1em 0 8px;
65+
}
66+
67+
h2 {
68+
padding-bottom: 0.2em;
69+
margin: 1em 0 0.37em;
70+
}
6171
`
6272
}
6373

0 commit comments

Comments
 (0)