Background
See T168941: Remove spacing between list items for examples of how lists should be rendered in the Page Previews client. Currently by limiting ourselves to sentences/characters we risk losing list HTML which we would like to retain.
AC
- The Page Summary API still returns content from the first p element of the lead section of the page.
- The API is extended to return:
- Any ol, ul or dl that are immediate siblings of the first p element.
- This change is done in the Page Summary API (T168848).
Signoff AC
- @ovasileva: After the change is deployed, update https://www.mediawiki.org/wiki/Beta_Features/Hovercards with expected behavior.