This is Thunderbird 68.8.1 from debian sid, I believe it uses gecko and the content should look similar to firefox 76.0.1 where it looks fine.
The style for this html violates that both fg and bg colors should be defined together and relies on common default: black_fg/white_bg:
<div style="padding-top:5px;"><pre style="word-wrap: break-word; max-width: 694px;"><code style="display: block; background-color: #f1f1ff; padding: 5px;; background-color: #f1f1ff; padding: 2px 5px;">
(BTW, Why it’s so sloppy? padding and background-color are repeated twice.)
Moreover looks like it ignores my discourse-user preferences, tb style and tries to display this in light mode.