143: Fix ordered list rendering
The `linefeeds_regex` doubles every newline character. However, when that happens, it turns tight numbered lists into loose numbered lists. Context: https://stackoverflow.com/a/43505265 Going with solution proposed by @TLSM since the forum already has production traffic.
This commit is contained in:
parent
c16cf799ed
commit
99d67e95dc
1 changed files with 9 additions and 0 deletions
|
@ -5154,3 +5154,12 @@ th, td {
|
||||||
.mobile-comment-link {
|
.mobile-comment-link {
|
||||||
color: var(--dark);
|
color: var(--dark);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Fix for <ol> being populated with <li><p></p></li> in many contexts. */
|
||||||
|
.post-body li > p:first-child,
|
||||||
|
.comment-text li > p:first-child,
|
||||||
|
.preview li > p:first-child,
|
||||||
|
div[id^="form-preview-"] li > p:first-child,
|
||||||
|
div[id^="reply-edit-"] li > p:first-child {
|
||||||
|
display: inline;
|
||||||
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue