<div dir="ltr"><br><div>Sylvain's ocaml-markdown is also based on Mauricio's benchmark: <a href="http://forge.ocamlcore.org/scm/browser.php?group_id=303&repo_name=ocaml-markdown" target="_blank">http://forge.ocamlcore.org/scm/browser.php?group_id=303&repo_name=ocaml-markdown</a></div>
<div><br></div><div>All those implementations seem very far from github, pandoc or even <a href="http://daringfireball.net/projects/markdown/syntax" target="_blank">http://daringfireball.net/projects/markdown/syntax</a> (they don't handle lists properly, interpret *asterisks* as <b>bold </b>instead of <i>emph</i>, blockquotes? etc. or am I missing something?). </div>
<div><br></div><div>I had noticed that Thomas did some work, a while ago, on reimplementing Cow's module, with ocaml{lex,yacc}:</div><div><a href="https://github.com/samoht/ocaml-cow/commit/76c057a66f07ea7e026e5ceb3f71b81a47f78af0" target="_blank">https://github.com/samoht/ocaml-cow/commit/76c057a66f07ea7e026e5ceb3f71b81a47f78af0</a><br>
</div><div>It that idea abandoned?</div><div><br></div><div><br></div><div>Adding to Gabriel's list:</div><div><br></div><div>- wiki-creole: <a href="https://github.com/besport/ocaml-wikicreole" target="_blank">https://github.com/besport/ocaml-wikicreole</a> </div>
<div>- there is also a parser for a wiki-creole-like language in OCsimore <a href="http://ocsigen.org/ocsimore/" target="_blank">http://ocsigen.org/ocsimore/</a></div><div><br></div><div><div><br>Right now, I unix.system 'pandoc' on server-side, and use Marked (<a href="https://github.com/chjj/marked" target="_blank">https://github.com/chjj/marked</a>) with js_of_ocaml's Js.Unsafe module on client side.</div>
<div>It would be indeed really cool to have a pure OCaml implementation!</div><div><br></div><div>BTW, Marked.js comes with an extensive test suite that they claim to be derived from the "official one" (the perl implementation), that can be useful.</div>
<div><br></div></div><div><br></div><div>Cheers</div><div>Seb</div><div><br></div><div><br></div><div>--</div><div><span style="font-family:'normal arial',sans-serif;font-size:12.222222328186035px">Tonight! Lucrative Jacket, 9pm Gig at The Living Room, NYC! Yes, early and free! </span><a rel="nofollow" href="http://www.youtube.com/lucrativejacket" style="text-decoration:none;font-family:'normal arial',sans-serif;font-size:12.222222328186035px" target="_blank">http://www.youtube.com/lucrativejacket</a><br>
</div><div><br></div><div><br></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jul 2, 2013 at 9:22 AM, Thomas Gazagnaire <span dir="ltr"><<a href="mailto:thomas@gazagnaire.org" target="_blank">thomas@gazagnaire.org</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">> Mauricio Fernandez wrote a basic Markdown parser which might fit<br>
> your needs well. Have you looked at it yet?<br>
<br>
</div>Yup, we are using it in ocaml-cow[1,2] (and we have adapted it to (almost) read Github Markdown as well).<br>
<br>
Thomas<br>
<br>
[1] <a href="https://github.com/mirage/ocaml-cow/blob/master/lib/markdown.ml" target="_blank">https://github.com/mirage/ocaml-cow/blob/master/lib/markdown.ml</a><br>
[2] <a href="https://github.com/mirage/ocaml-cow/blob/master/lib/markdown_github.ml" target="_blank">https://github.com/mirage/ocaml-cow/blob/master/lib/markdown_github.ml</a><br>
<div class="HOEnZb"><div class="h5">_______________________________________________<br>
Infrastructure mailing list<br>
<a href="mailto:Infrastructure@lists.ocaml.org">Infrastructure@lists.ocaml.org</a><br>
<a href="http://lists.ocaml.org/listinfo/infrastructure" target="_blank">http://lists.ocaml.org/listinfo/infrastructure</a><br>
</div></div></blockquote></div><br></div>