Page MenuHomePhabricator

Parsoid doesn't support FunctionTags
Open, LowPublic

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

Arlolra created this task.Mar 7 2018, 6:28 PM
Restricted Application added a subscriber: Aklapper. · View Herald TranscriptMar 7 2018, 6:28 PM
Arlolra triaged this task as Low priority.Apr 4 2018, 5:01 PM