Re: Flexible Markdown Parser

Andrei Fangli andrei_fangli at hotmail.com
Sun Sep 14 10:52:38 EDT 2014


Yeah, that’s one way to do it however I want to test the resulting parse tree not the resulting parse tree formatted to html.






Andrei Fangli





From: Michel Fortin
Sent: ‎Sunday‎, ‎14‎ ‎September‎ ‎2014 ‎17‎:‎45
To: markdown-discuss at six.pairlist.net





Le 14-sept.-2014 à 9:48, Andrei Fangli <andrei_fangli at hotmail.com> a écrit :

> Thanks,
> 
> I’ll fork the repo and convert the tests cases to C# unit tests in a separate branch.
> 

You can do that.

But note that you can already run those tests on the command line if you have PHP-CLI installed on your machine and you have an executable that reads Markdown on stdin and writes HTML on stdout. The existing PHP driver normalizes XHTML output to account for insignificant differences in spacing and character entities, and it can generate diffs when the output doesn't match.

So maybe you'll prefer using `php mdtest.php -s SomeMarkdownParser.exe` instead of rolling your own. Just a suggestion.

-- 
Michel Fortin
michel.fortin at michelf.ca
http://michelf.ca

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss at six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://six.pairlist.net/pipermail/markdown-discuss/attachments/20140914/699cd9c9/attachment.html>


More information about the Markdown-Discuss mailing list