Parsoid has its own extension API - see https://www.mediawiki.org/wiki/Parsoid/Extension_API.
The RelatedArticles extension needs an update to work directly with Parsoid so that we can switch Wikimedia wikis to use Parsoid instead of core parser in late 2021.
The Parsing Team will work with you as required.
Looking at the code, it appears that it uses the setFunctionHook API. ParsoidExtensionAPI is yet to add this support. But, looking at the extension code, once that is done, the actual retargeting work should be quite straightforward and simple.
Requirement
Update the RelatedArticles extension to be compatible with Parsoid, ensuring that it functions correctly on Wikimedia wikis as they transition from the core parser to Parsoid.
BDD
Feature: Make RelatedArticles Extension Compatible with Parsoid
Scenario: Display related articles using Parsoid
Given the user is viewing a page on a wiki using Parsoid
When the user scrolls to the bottom of the page
Then more than one related article should be renderedTest Steps
(Production only)
Test Case 1: Verify Related Articles Rendering with Parsoid
- Visit India on Wikivoyage in production.
- Scroll to the bottom of the page.
- AC1: Confirm that more than one related article is rendered.
QA Results - Prod
| AC | Status | Details |
|---|---|---|
| 1 | ✅ | T263772#10055747 |
