Add autoincremented numbering for links without display text

Authored by Mholloway on Thu, Oct 12, 10:50 PM.

Description

Add autoincremented numbering for links without display text

We used to pull in mediawiki.skinning.content.parsoid for this but it
started breaking other stuff (T163738) and also stopped working for our
content service output, regressing T162116. This incorporates a snippet
that works for us.

Change-Id: I6083bbdcd3c4d36b466981f1ddaacd3536820d54

Details