Which is why I used—wait for it—Dompdf.
> My dream for this thing is, eventually, we could start building social media images via regular WordPress PHP templates. The trick is that you need something to screenshot them, like Puppeteer[.] An average WordPress install doesn’t have that available[.]
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!