Skip to content

Commit a961666

Browse files
authored
fix markdown checkbox rendering (#17425)
1 parent 7c951fd commit a961666

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

web_src/less/markup/content.less

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -159,12 +159,18 @@
159159
.task-list-item {
160160
list-style-type: none;
161161
position: relative;
162+
line-height: 1.5rem;
163+
min-height: 1.5rem; // to render a checkbox list without content `- [ ]`, we need this min-height to make sure the <li> can be visible
162164

163165
input[type="checkbox"] {
164166
position: absolute;
165167
top: .25em;
166168
left: -1.6em;
167169
}
170+
171+
p {
172+
line-height: 1.5rem;
173+
}
168174
}
169175

170176
.task-list-item + .task-list-item {

0 commit comments

Comments
 (0)