[ocaml-infra] Fwd: [opam-repository] Add ocaml-markdown 0.1.1 (#863)

Sebastien Mondet sebastien.mondet at gmail.com
Tue Jul 2 15:40:11 BST 2013

Sylvain's ocaml-markdown is also based on Mauricio's benchmark:

All those implementations seem very far from github, pandoc or even
http://daringfireball.net/projects/markdown/syntax (they don't handle lists
properly, interpret *asterisks* as *bold *instead of *emph*, blockquotes?
etc. or am I missing something?).

I had noticed that Thomas did some work, a while ago, on reimplementing
Cow's module, with ocaml{lex,yacc}:
It that idea abandoned?

Adding to Gabriel's list:

- wiki-creole: https://github.com/besport/ocaml-wikicreole
- there is also a parser for a wiki-creole-like language in OCsimore

Right now, I unix.system 'pandoc' on server-side, and use Marked (
https://github.com/chjj/marked) with js_of_ocaml's Js.Unsafe module on
client side.
It would be indeed really cool to have a pure OCaml implementation!

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


Tonight! Lucrative Jacket, 9pm Gig at The Living Room, NYC! Yes, early and
free! http://www.youtube.com/lucrativejacket

On Tue, Jul 2, 2013 at 9:22 AM, Thomas Gazagnaire <thomas at gazagnaire.org>wrote:

> > Mauricio Fernandez wrote a basic Markdown parser which might fit
> > your needs well.  Have you looked at it yet?
> Yup, we are using it in ocaml-cow[1,2] (and we have adapted it to (almost)
> read Github Markdown as well).
> Thomas
> [1] https://github.com/mirage/ocaml-cow/blob/master/lib/markdown.ml
> [2] https://github.com/mirage/ocaml-cow/blob/master/lib/markdown_github.ml
> _______________________________________________
> Infrastructure mailing list
> Infrastructure at lists.ocaml.org
> http://lists.ocaml.org/listinfo/infrastructure
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ocaml.org/pipermail/infrastructure/attachments/20130702/b66cd988/attachment.html>

More information about the Infrastructure mailing list