Background
With the new parsoid experience enabled, the lead paragraph of the article is not correctly being displayed before the infobox, as it is with the legacy parser:
Infobox should be below first paragraph
(this is from https://en.m.wikipedia.org/wiki/SS_Kroonland with new parser HTML)
User story
As a reader of the wikis, I would like to be able to see the lead paragraph displayed before any infobox content, so that I can better understand the article even with limited screen space
Requirements
- lead paragraph should be correctly displayed before infobox content with parsoid enabled
- lead paragraph hoisting should continue to work with the legacy parser enabled
Rollback plan
I don't imagine that this will result in any data being saved or otherwise - I'm not entirely sure how caching works in this case, so there is a chance if a transform is being applied that it will be cached and if we need to roll back that we would also need to reason about the cached content
Note
We should explore the approach in https://phabricator.wikimedia.org/T262093 and see if we can learn anything from that experience.