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>&lt;!-- Comment written this way ===
And a new line after the end of the comment--&gt;</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.

_______________________________________________
Wikitech-l mailing list
Wikitech-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikitech-l

Reply via email to