The app replaces red links with spans.
At a minimum we still need to be able to detect red links on the app side, so the app doesn't try to go to the page (or the link preview).
(We would also like to run this transformation on the Mobile Content Service instead of the clients.)
The problem is that there doesn't seem to be a way to detect red links with Parsoid output.
Red link example from Parsoid output of https://test.wikipedia.org/api/rest_v1/page/html/1977:
<a rel="mw:WikiLink" href="./2nd_millennium" title="2nd millennium">2nd<span typeof="mw:Entity"> </span>millennium</a>
Same link with mobileview:
<a href=\"/w/index.php?title=2nd_millennium&action=edit&redlink=1\" class=\"new\" title=\"2nd millennium (page does not exist)\">2nd millennium</a>
The app looks for class new to detect red links.