When I do preparsing of the following text
Some text ===<!-- Comment written this way === And a new line after the end of the comment-->
It gives me a level 1 header with = as a title (what is expected), but it also put a comment inside of <h></h> tags:
<root>Some text <h level="1" i="1">===<comment><!-- Comment written this way === And a new line after the end of the comment--></comment></h> </root>
This is not a problem for web rendering since comments are simply removed, but if one will try to create some ObjModel from the result xml, it would be not exactly the result that person would expect. And there might be some other unexpected results. i.e. some code would expect to find = before </h> tag, and would be surprised when it does not find it there. Etc.
This quite a minor problem, but I think it worth reporting.
Hi,
On Mon, 2014-08-18 at 14:11 +0400, Nikolay Shaplov wrote:
When I do preparsing of the following text
[...]
This quite a minor problem, but I think it worth reporting.
Feel free to create a minor bug report in https://bugzilla.wikimedia.org under "MediaWiki > Parser".
Thanks, andre
wikitech-l@lists.wikimedia.org