Commit graph

3 commits

Author SHA1 Message Date
Bartosz Dziewoński
f0c7fa9234 Move section edit links outside headings (new heading HTML)
Legacy parser can now output headings using a more accessible markup,
which is also identical to the markup used by the Parsoid parser.

Changes to client-side JS and CSS necessary to support the new markup
have already been merged in earlier commits.

includes/skins/Skin.php
includes/ServiceWiring.php
* Define a new skin option, 'supportsMwHeading', which can be used
  to toggle the new markup per-skin.
* Update the built-in fallback skin to enable it. This affects the
  output in parser tests.

docs/config-schema.yaml
includes/config-schema.php
includes/config-vars.php
includes/MainConfigNames.php
includes/MainConfigSchema.php
* Add a new configuration setting, 'ParserEnableLegacyHeadingDOM',
  which can be used to toggle the new markup per-site.

includes/OutputTransform/Stages/HandleSectionLinks.php
* Output new heading HTML for skins that enabled the option.

tests/*
* Duplicate parser tests that cover heading generation to cover both
  new and old markup. Update other parser tests to use new markup.
* Add some unit and integration tests for the behavior of the skin
  option and some parser tests for edge cases of the new markup.

Bug: T13555
Change-Id: I1180169a8e83af834c2984ba16089e6277f2a8dd
2024-05-06 12:25:33 -04:00
Arlo Breault
de01ef7d20 Sync up core repo with Parsoid
This now aligns with Parsoid commit c296dca4af9a1d47200a3699e12d9884acc43150

Change-Id: I5a0e246171e9b58d77b2be945b802f381c1f40b2
2024-04-11 12:59:32 -04:00
Subramanya Sastry
55afbd1adf Sync up core repo with Parsoid
This now aligns with Parsoid commit 00d6c00c5972705c0f88d398e4b78f757ef86f4b

Change-Id: I051d1b29e480292078f681fc722a63d0d1588d15
2022-10-19 19:13:04 -05:00