🎨 style(image): display linked images inline within paragraphs

Images wrapped in links inside paragraphs (p > a > img) are now
displayed inline, matching the existing img.inline behaviour.

This covers a common Markdown pattern — badges and status icons like
[![alt](badge.svg)](url) — where block display breaks the intended
horizontal flow without requiring authors to switch to raw HTML.
This commit is contained in:
Jérôme Ramette 2026-02-16 17:33:13 +01:00
parent 4460f6e52b
commit 96e4fed704

View file

@ -20,8 +20,10 @@ img {
height: auto; height: auto;
} }
img.inline { img.inline,
p > a > img {
display: inline; display: inline;
margin: 0;
vertical-align: middle; vertical-align: middle;
} }