On 02/23/2016 02:46 PM, James Montalvo wrote:
Why does it treat the img tag as a literal string, but not an h2 tag, for example?
This is what the PHP parser does as well You can try it in a sandbox [1], for example.
That is understandable because bare image tags can link to all kinds of external images that is not necessarily desirable (among other problematic uses of images out there in the wild that don't belong on wikipedia). Image-specific markup via [[..]] is how image display is controlled, and all other bare image tags (just like bare A-tags) are excluded among other tags. See [2] for the full list of whitelisted tags.
Subbu.
[1] https://en.wikipedia.org/w/index.php?title=Wikipedia:Sandbox [2] https://github.com/wikimedia/parsoid/blob/master/lib/config/WikitextConstant...