[prev in list] [next in list] [prev in thread] [next in thread] 

List:       markdown-discuss
Subject:    =?utf-8?Q?Re:_Flexible_Markdown_Parser?=
From:       Andrei Fangli <andrei_fangli () hotmail ! com>
Date:       2014-09-14 14:52:38
Message-ID: DUB407-EAS197926B1E6EF36D7B556FAD8ECB0 () phx ! gbl
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]

[Attachment #4 (text/plain)]

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@six.pairlist.net





Le 14-sept.-2014 à 9:48, Andrei Fangli <andrei_fangli@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@michelf.ca
http://michelf.ca

_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


[Attachment #5 (text/html)]


<html>
<head>
<meta name="generator" content="Windows Mail 17.5.9600.20605">
<style><!--
.EmailQuote {
margin-left:1pt;
padding-left:4pt;
border-left:#800000 2px solid;
}
--></style><style data-externalstyle="true"><!--
p.MsoListParagraph, li.MsoListParagraph, div.MsoListParagraph {
margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
}
p.MsoNormal, li.MsoNormal, div.MsoNormal {
margin:0in;
margin-bottom:.0001pt;
}
p.MsoListParagraphCxSpFirst, li.MsoListParagraphCxSpFirst, \
div.MsoListParagraphCxSpFirst,  p.MsoListParagraphCxSpMiddle, \
li.MsoListParagraphCxSpMiddle, div.MsoListParagraphCxSpMiddle,  \
p.MsoListParagraphCxSpLast, li.MsoListParagraphCxSpLast, div.MsoListParagraphCxSpLast \
{ margin-top:0in;
margin-right:0in;
margin-bottom:0in;
margin-left:.5in;
margin-bottom:.0001pt;
line-height:115%;
}
--></style></head>
<body dir="ltr">
<div data-externalstyle="false" dir="ltr" style="font-family: 'Calibri', 'Segoe UI', \
'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', \
'sans-serif';font-size:12pt;"><div style="color: rgb(0, 0, 0);">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.<br></div><div style="color: rgb(0, 0, 0);" \
data-signatureblock="true"><div style="color: rgb(0, 0, 0);"><br></div><div \
style="color: rgb(0, 0, 0);">Andrei Fangli</div><div style="color: rgb(0, 0, \
0);"><br></div></div><div style="padding-top: 5px; border-top-color: rgb(229, 229, \
229); border-top-width: 1px; border-top-style: solid;"><div><font face=" 'Calibri', \
'Segoe UI', 'Meiryo', 'Microsoft YaHei UI', 'Microsoft JhengHei UI', 'Malgun Gothic', \
'sans-serif'" style='line-height: 15pt; letter-spacing: 0.02em; font-family: \
"Calibri", "Segoe UI", "Meiryo", "Microsoft YaHei UI", "Microsoft JhengHei UI", \
"Malgun Gothic", "sans-serif"; font-size: 12pt;'><b>From:</b>&nbsp;<a \
href="mailto:michel.fortin@michelf.ca" target="_parent">Michel \
Fortin</a><br><b>Sent:</b>&nbsp;‎Sunday‎, ‎14‎ ‎September‎ ‎2014 \
‎17‎:‎45<br><b>To:</b>&nbsp;<a href="mailto:markdown-discuss@six.pairlist.net" \
target="_parent">markdown-discuss@six.pairlist.net</a></font></div></div><div><br></div><div \
dir=""> <div class="PlainText">Le 14-sept.-2014 Ã  9:48, Andrei Fangli \
&lt;andrei_fangli@hotmail.com&gt; a écrit :<br> <br>
&gt; Thanks,<br>
&gt; <br>
&gt; I'll fork the repo and convert the tests cases to C# unit tests in a separate \
branch.<br> &gt; <br>
<br>
You can do that.<br>
<br>
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.<br> <br>
So maybe you'll prefer using `php mdtest.php -s SomeMarkdownParser.exe` instead of \
rolling your own. Just a suggestion.<br> <br>
-- <br>
Michel Fortin<br>
michel.fortin@michelf.ca<br>
<a href="http://michelf.ca" target="_parent">http://michelf.ca</a><br>
<br>
_______________________________________________<br>
Markdown-Discuss mailing list<br>
Markdown-Discuss@six.pairlist.net<br>
<a href="http://six.pairlist.net/mailman/listinfo/markdown-discuss" \
target="_parent">http://six.pairlist.net/mailman/listinfo/markdown-discuss</a><br> \
</div>


</div></div>
</body>
</html>



_______________________________________________
Markdown-Discuss mailing list
Markdown-Discuss@six.pairlist.net
http://six.pairlist.net/mailman/listinfo/markdown-discuss


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic