Page MenuHomePhabricator

Support for parser functions using "isHTML"?
Open, MediumPublic


Esoteric flags like "isHTML" don't fly with Parsoid

Currently, Parsoid expects parser functions to return wikitext during preprocessing. However, the presence of this "isHTML" flag means that some parser functions return html that the legacy parser armours for them. That's what is happening in T257344

Maybe they should do something that's more aware of the $parser->getOutputType()? That's what the patch in T257344 tries to do so that only wikitext is return when preprocessing.

Something to be aware of when designing Parsoid's setFunctionHook in T268144

Event Timeline

Arlolra triaged this task as Medium priority.Apr 1 2021, 6:23 PM
Arlolra moved this task from Needs Triage to Missing Functionality on the Parsoid board.

Change 676436 had a related patch set uploaded (by Arlolra; author: Arlolra):

[mediawiki/extensions/CategoryTree@master] Help Parsoid out by returning an ext tag when preprocessing

Change 676436 merged by jenkins-bot:

[mediawiki/extensions/CategoryTree@master] Return an extension tag when preprocessing a parser function