Assume there's a page with wikitext:
"""
AAA
BBB
CCC
DDD
EEE
FFF
"""
When I mobile edit section 1 (BBB), the textarea contains:
"""
BBB
CCC
DDD
"""
and in preview (if I save it with no change) would be:
"""
CCC
DDD
"""
If change wikitext in the textarea to:
"""
CCC
BBB
DDD
"""
and try to save it, the preview is still:
"""
CCC
DDD
"""
Or if I use wikitext:
"""
GGG
CCC
DDD
"""
There's still no difference in preview.
I know this is because MediaWiki's preview generates the heading in HTML, so we strip one heading in mobile preview for prettiness. Maybe we can only strip it when the new heading is identical (content and position ie. at the beginning) to the original, but this still makes removal of section heading invisible in preview...
Version: unspecified
Severity: normal
See Also:
https://bugzilla.wikimedia.org/show_bug.cgi?id=62652