[Wikitech-l] Preparser: Comments after === became a part of a header in xml representation

2014-08-18 Thread Nikolay Shaplov
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: rootSome text h level=1 i=1===commentlt;!--

[Wikitech-l] Perl implementation of preprocessToXml

2014-04-04 Thread Nikolay Shaplov
Hi! I am a perl programmer, and I am trying to make perl implementation of mediawiki format parser in order to use it in my projects. I want this parser to work exactly in the same way as original php code, and since php and perl have a lot of common in syntax, I decided to take original