package omd
Install
Dune Dependency
Authors
Maintainers
Sources
sha256=5800b920db48d68fa77d8270d64a45989eac398f76d733267827c9a0b2a90390
sha512=0c545a52a706a47fd9fe233f3daf7d4d4907ddd32b6faa9bb75df9086995f44ea341ed9b30d334c393d4f340c7f3bc27e99a0f8cb70943c7d4bd30128ed51fef
Description
This Markdown library is implemented using only pure OCaml (including
I/O operations provided by the standard OCaml compiler distribution).
OMD is meant to be as faithful as possible to the original Markdown.
Additionally, OMD implements a few Github markdown features, an
extension mechanism, and some other features. Note that the opam
package installs both the OMD library and the command line tool omd
.
README
omd
: Markdown library and tool in OCaml
Omd is an OCaml library designed to parse and print Markdown into different formats. In addition to the library, a command-line tool omd
is included to easily convert markdown into HTML.
Omd aims at implementing the Commonmark standard. The version currently targeted is 0.29.
Omd is developed on GitHub. If you need to report an issue, please do so at https://github.com/ocaml/omd/issues.
Dependencies
The minimum version of OCaml required is 4.04.2 Omd does not currently have any dependencies apart from the standard library.
Installation
The recommended way to install omd
is via the [opam package manager][opam]:
$ opam install omd
You can also build it manually with:
$ dune build
You can run the testsuite by doing:
$ dune runtest
History
OMD has been developed by Philippe Wang at OCaml Labs in Cambridge.
Its development was motivated by at least these facts:
We wanted an OCaml implementation of Markdown; some OCaml parsers of Markdown existed before but they were incomplete. It's easier for an OCaml project to depend on an pure-OCaml implementation of Markdown than to depend some interface to a library implemented using another language, and this is ever more important since Opam exists.
We wanted to provide a way to make the contents of the OCaml.org website be essentially in Markdown instead of HTML. And we wanted to this website to be implemented in OCaml.
Having an OCaml implementation of Markdown is virtually mandatory for those who want to use a Markdown parser in a Mirage application. Note that OMD has replaced the previous Markdown parser of COW, which has been developed as part of the Mirage project.
Thanks
Thank you to Christophe Troestler, Ashish Argawal, Sebastien Mondet, Thomas Gazagnaire, Daniel Bünzli, Amir Chaudry, Anil Madhavapeddy, David Sheets, Jeremy Yallop, and <please insert your name here if you believe you've been forgotten> for their feedbacks and contributions to this project.
Dev Dependencies
None
Used by (18)
-
beluga
>= "1.1"
-
builder-web
< "0.2.0"
-
camyll
>= "0.4.1" & < "0.4.3"
-
cow
>= "0.9.1"
-
cowabloga
>= "0.0.7"
- finch
- hardcaml-examples
- hardcaml-framework
-
jekyll-format
< "0.3.3"
- lambdoc
-
learn-ocaml
< "0.13.0"
-
learn-ocaml-client
< "0.13.0"
-
malfunction
< "0.3" | >= "0.5"
-
md2mld
= "0.4.0"
-
stog
>= "0.17.0" & < "0.18.0" | = "0.19.0"
- stog_markdown
-
stone
>= "0.3.2"
- yocaml_markdown
Conflicts
None