== Background
Currently, a page summary can include more than one paragraph. When switching to the HTML endpoint, this caused a series of style issues. A page summary should only include elements from the lead section of the page, [as (currently) defined in the MobileFormatter](https://github.com/wikimedia/mediawiki-extensions-MobileFrontend/blob/60086d0c/includes/MobileFormatter.php#L227-L296).
See {T168941} for examples of how lists should be rendered in the Page Previews client.
== AC
[] The Page Summary API returns:
* Content from the lead section only.
* Any content from the first `p` element.
* Any `ol` or `ul` that are immediate siblings of the first `p` element.
* The MobileFormatter doesn't move `dl` elements so we shouldn't move this here.
== Signoff AC
[] @ovasileva: After the change is deployed, update https://www.mediawiki.org/wiki/Beta_Features/Hovercards with expected behavior.