Page MenuHomePhabricator

Borrow functionality from the LinkHandlerUtils::figureHandler for serializing media in gallery
Open, MediumPublic

Description

A bunch of common functionality could be reused in the gallery to avoid all the roundtripping dirtying we're seeing.

See all the FIXMEs in Gallery::contentHandler,
https://github.com/wikimedia/parsoid/blob/master/src/Ext/Gallery/Gallery.php#L258