**Steps to understand:**
# Edit an existing article, and change the contents of a <ref>.
# //Before saving//, check the visual diff. See:
#* The ref number (the little blue clicky number) is highlighted.
#* The new text displayed.
#* The old text has vanished without a trace.
# Save/Publish your change.
# //After saving//, go to the history page and check the visual diff. See:
#* The old text is displayed in red strikethrough.
#* The new text is displayed in green (i.e., for insertion).
**Expected:**
It's the same edit. These diffs should match.
Reported by @AxelBoldt at https://www.mediawiki.org/wiki/Topic:Vpu1ggxm9pfkwbrj
Test instructions:
1. Click on
https://en.wikipedia.org/w/index.php?title=Alice_Dreger&oldid=971360142&veaction=editsource§ion=2
2. Open this revision of article using NWE.
2. In the second paragraph, you'll see a <ref name="MSU"> containing a cite-web template. Change the template's title parameter from "Teacher-Scholar" to "TeacherXXXScholar".
3. Now click on "Publish changes", then "Review your changes".
4. Go to the Visual Diff section.
Observed Result:
It looks like this:
{F34091428} {F34091430}
- Unchanged references are marked as modified
- The text of the changed reference is not marked
- Something is wrong with the styles (the line breaks after each "↑" are unexpected)
Expected Result:
It should look like this:
{F34091433}