Text::Markdown vs MDTest (Was: Re: forking Markdown.pl?)

Michel Fortin michel.fortin at michelf.com
Fri Mar 21 22:32:08 EDT 2008


Le 2008-03-21 à 16:39, Tomas Doran a écrit :


> So, the *only* things that Text::Markdown currently fails on are

> small whitespace changes..


Hum, have you written your own test script?

I encourage you to use the mdtest.php script if you have PHP 5
installed on your computer. It'll normalize the whitespace for you
before comparing the output, ensuring that insignificant whitespace
differences don't make any test fail. All you need is an executable
you can invoke that will parse the standard input and put the result
on the standard output and you can use MDTest like this:

./mdtest.php -n -s Markdown.pl

-n for normalize (and ignore insignificant whitespace), -s to tell
mdtest to use the given script (such as Markdown.pl). You can add -d
to see a diff for failing tests.


Michel Fortin
michel.fortin at michelf.com
http://michelf.com/




More information about the Markdown-Discuss mailing list