The live preview feature when enabled
{F34940938}
makes various assumptions about the HTML of the page
when I edit https://fr.wikipedia.org/w/index.php?title=Utilisateur:Jon_(WMF)/draft&action=edit:
{F34940940}
This results in the max width applying twice.
# Developer notes
Looking at https://phabricator.wikimedia.org/source/mediawiki/browse/master/resources/src/mediawiki.action/mediawiki.action.edit.preview.js$44 it makes all sorts of assumptions about the HTML, for example how indicators and categories apply.
On the short term this feature should probably not be loaded on modern Vector:
https://gerrit.wikimedia.org/g/mediawiki/core/+/55a2f2be4da70298e45cdc605059ca6e8753fe5d/includes/EditPage.php#2637
On long term, we should avoid making all these brittle assumptions about the HTML and add a proper API for making such changes.