Page MenuHomePhabricator

Parsoid doesn't support FunctionTags
Closed, ResolvedPublic

Description

https://github.com/wikimedia/mediawiki/blob/master/includes/parser/Parser.php#L4873-L4882

Similar to extension tags, but parsed at the preprocessor level. So, if one was nested in a template, we'd only get back the rendered result when calling for template expansion, which means implementing them natively, as in T110909, won't work.

Code search tells me it's currently only being used in,
https://codesearch.wmflabs.org/search/?q=setFunctionTagHook&i=nope&files=&repos=

extensions / Description2

(which uses it to set parsing state anyways, which doesn't work, T95081)

Event Timeline

LGoto moved this task from Backlog to Needs Investigation on the Parsoid board.
cscott changed the task status from Duplicate to Resolved.Apr 5 2022, 4:57 PM

Turns out I accomplishes this task by getting rid of the feature in core! :)