Wrap production autolinks in a <var> too.
Fix error where the .tail of some elements was moved to the end of the paragraph.