MediaWiki Syntax is not extensible
The hook to extend MediaWiki syntax to support MediaWiki extensions allows us to define our own functions to process syntax. However, the parser isn't passed into a custom function, so we can't test for things like HTML permissions or what kind of output the parser wants (fake, convert, or standard).
Fixed for the next build.