"""Wrap every image in an article body so it can carry a CRT overlay.
The scanlines belong on the pictures, not on the whole screen. A board showing
a photograph was a monitor displaying it; the text around it is just text, and
a gradient over the entire page shimmers at non-integer zoom.
An
cannot host a ::after of its own, so each one gets a wrapper. Done here
rather than with CSS :has() because images are not reliably alone in their
paragraph, and :has() would miss the ones that are not.
"""
import re
from pelican import signals
IMG = re.compile(r'
]*>')
IFRAME = re.compile(r'