Some pages start with an extraneous <span>. This has the negative consequence of our summary code picking up the incorrect intro paragraph in theses cases if we use mobile-sections-lead as the input[1]. If we use straight Parsoid html that is not an issue.
[1] See patch rGMOA9ce0818f3f29.
Examples
http://localhost:6928/de.wikipedia.org/v1/page/summary/B%C3%BCrgerkrieg_in_Syrien
https://de.wikipedia.org/api/rest_v1/page/mobile-sections-lead/B%C3%BCrgerkrieg_in_Syrien/173442308
"text": "<span><p>Der <b>Bürgerkrieg in Syrien</b>
https://de.wikipedia.org/api/rest_v1/page/html/B%C3%BCrgerkrieg_in_Syrien/173442308
<span about="#mwt1" typeof="mw:Transclusion"
https://bg.wikipedia.org/api/rest_v1/page/mobile-sections-lead/%D0%94%D0%B0%D0%BD%D0%B8%D1%8F/8341068
https://bg.m.wikipedia.org/api/rest_v1/page/mobile-sections-lead/%D0%9E%D0%BB%D0%BE%D0%B2%D0%BE/8055614
How to fix
Replace the first paragraph relocation transform with the page library one for the mobile-sections endpoint.