Follow-up to T286788:
In T286788#7526054, @santhosh wrote:
I debugged this issue and found that the preview element created by ve.ui.MWReferenceContextItem uses default arguments of ve.ui.MWPreviewElement. ve.ui.MWPreviewElement has useView configuration as false by default and causes not rendering the references from its DOM model as required for section translation.
As a workaround, I created a custom getRendering method in Section translation and use it as as override for ve.ui.MWReferenceContextItem.prototype.getRendering(see https://gerrit.wikimedia.org/r/741102). It fixed the issue, but I am not happy with this method as I am having a copy of ve.ui.MWReferenceContextItem.prototype.getRendering in SX detached from the updates in upstream.
@DLynch @matmarex Do you have any suggestions for better fix?