Repository navigation
A fix only: no migration, so upgrading is a tag change and an apply — but the
extractor version changed, so run tome reextract once afterwards.
Extraction version 9
A caption a domain rule selects is stored as a caption. The reader styles a
<figcaption> smaller and set apart from the prose, but many sites mark a caption
only with a class, and the sanitizer drops every class — so gallery and lead-image
captions were stored as bare blocks and read at body size. The domain-rule rung now
stores an element as a figcaption when an image names it with aria-labelledby or
aria-describedby, or when a caption class (wp-caption-text, a lightbox's
pswp-caption-content) sits beside an image. An element holding a picture is never
renamed, and neither is one inside a paragraph.
Only that rung: the extractor libraries discard figcaption text when they rebuild a
body, so marking captions ahead of them deleted the captions instead.
Measured over every re-extractable body in a real archive (9,197): 918 change, all
on the one site whose rule this reaches, and no text changes anywhere.
Run tome reextract once after upgrading.
Image
ghcr.io/runlevel-six/tomekeeper:v1.3.3
ghcr.io/runlevel-six/tomekeeper@sha256:c0a48055092295fd5dbab9d2b60b1d8d9147ba45d48ec1a2312e5928d70562a0