On Feb 9, 2008 2:21 AM, Steve Bennett stevagewp@gmail.com wrote:
(Another mini milestone, it now parses that example perfectly, images and all. Though I'm sure there are still plenty of tables that will break it)
For wiki2xml, I started a test suite using the parser tests from MediaWiki. That might be an idea for your parser as well.
Note that wiki2xml automatically gets rid of "irrelevant" whitespace, whereas MediaWiki keeps it; that leads to "correct" output by wiki2xml, which is marked as wrong in an "equal" comparison of strings.
Magnus