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:
painejohn 2022-08-12 07:51:54 -04:00 committed by Ben Rog-Wilhelm
parent c16cf799ed
commit 99d67e95dc

View file

@ -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;
}