Set line-height to 1 for a <p> with only an <img> child

This is an (annoying) quirk of how Hugo renders Markdown. Sometimes images
are embedded in <p> tags, even if the <img> element is produced by a shortcode.
This commit is contained in:
Eryn Wells 2024-10-10 23:04:15 -07:00
parent 0672ba0740
commit 15cb817dd3

View file

@ -84,6 +84,10 @@ h4 {
p {
letter-spacing: 0.01em;
:has(img:only-child) {
line-height: 1;
}
}
sup {