Steps to replicate the issue (include links if applicable):
$ echo "{{1x|[https://www.garesetconnexions.sncf/fr/gares-services/frmor[[Category:Page utilisant P3104]]/ La gare de Moret-Veneux-les-Sablons]}}" | php ./bin/parse.php <p data-parsoid='{"dsr":[0,137,0,0]}'><a rel="mw:ExtLink nofollow" href="https://www.garesetconnexions.sncf/fr/gares-services/frmor" about="#mwt1" typeof="mw:Transclusion" class="external text" data-parsoid='{"pi":[[{"k":"1"}]],"dsr":[0,137,null,null]}' data-mw='{"parts":[{"template":{"target":{"wt":"1x","href":"./Template:1x"},"params":{"1":{"wt":"[https://www.garesetconnexions.sncf/fr/gares-services/frmor[[Category:Page utilisant P3104]]/ La gare de Moret-Veneux-les-Sablons]"}},"i":0}}]}'><span class="mw-empty-elt"><link rel="mw:PageProp/Category" href="./Category:Page_utilisant_P3104"/>/ La gare de Moret-Veneux-les-Sablons</span></a></p>
What happens?:
The category and the link text are wrapped into an mw-empty-elt span, which makes the text disappear when the CSS is applied.
What should have happened instead?:
The text should not be wrapped into an mw-empty-elt span.