https://bugzilla.wikimedia.org/show_bug.cgi?id=48891

Niklas Laxström <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED
           Assignee|[email protected]. |[email protected]
                   |org                         |

--- Comment #34 from Niklas Laxström <[email protected]> ---
Trying the parser hook solution now. I have code like:

        $parser->setHook( 'translate', function ( $input, $params, $parser,
$frame ) {
            $re = '~<tvar\|([^>]+)>(.*?)</>~u';
            $output = preg_replace( $re, '\2', $input );

            $output = $parser->recursiveTagParse( $output, $frame );
            $output = trim( $output );
            return $output;
        } );

This seems to work okay on simple text, with the exception of section edit
links.

I'm still trying with more complex pages with templates as well extensions and
our tutorial.

-- 
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to