mdx
Executable code blocks inside markdown files
Description
ocaml-mdx
allows to execute code blocks inside markdown files.
There are (currently) two sub-commands, corresponding
to two modes of operations: pre-processing (ocaml-mdx pp
)
and tests (ocaml-mdx test
).
The pre-processor mode allows to mix documentation and code, and to practice "literate programming" using markdown and OCaml.
The test mode allows to ensure that shell scripts and OCaml fragments in the documentation always stays up-to-date.
ocaml-mdx
is released as two binaries called ocaml-mdx
and mdx
which are
the same, mdx being the deprecated name, kept for now for compatibility.
Install
copied = false, 2000)"
:class="{ 'border-gray-700': !copied, 'text-gray-100': !copied, 'focus:ring-orange-500': !copied, 'focus:border-orange-500': !copied, 'border-green-600': copied, 'text-green-600': copied, 'focus:ring-green-500': copied, 'focus:border-green-500': copied }">
- Published
- 09 Dec 2021
- Authors
- Maintainers
Sources
mdx-1.11.1.tbz
sha256=603990812efa7184d88a4896d7f9369b43d32e3dbdd26fe9cecb5a5f5f32c1e0
sha512=461bb3f2e25f8a2f869577ec8f95f731e0765a534043088fdc88ee9fabaa52926eb957124529ff889f1d698df594b235219c677521eebe01a5959c7db75131ea
Dependencies
odoc
with-doc
cmdliner
with-test & < "1.1.0"
alcotest
with-test
lwt
with-test
odoc-parser
>= "0.9.0"
ocaml-version
>= "2.3.0"
re
>= "1.7.2"
cmdliner
>= "1.0.0"
logs
>= "0.7.0"
csexp
>= "1.3.2"
cppo
build & >= "1.1.0"
fmt
>= "0.8.7"
ocaml
>= "4.02.3"
dune
>= "2.7"
Reverse Dependencies
calculon
= "0.4"
calculon-web
= "0.4"
containers
>= "2.8" & < "3.0"
current_examples
>= "0.6"
current_git
>= "0.6.1"
current_incr
>= "0.6.0"
datalog
>= "0.6"
dolmen
>= "0.8"
dune-release
>= "1.4.0" & < "1.5.2"
eio_main
>= "0.2"
electrod
>= "0.5"
gitlab
< "0.1.1"
gitlab-jsoo
< "0.1.1"
gitlab-unix
< "0.1.1"
http-cookie
>= "4.1.0"
merlin
>= "3.3.0" & != "3.3.4~4.10preview1" & < "4.1-411"
msat
>= "0.8"
odoc
>= "2.0.0"
printbox
= "0.2"
reparse
>= "3.0.0"
routes
!= "0.5.2" & != "0.7.2"
spelll
>= "0.3"
spin
= "0.6.0"
yaml
>= "1.0.0" & < "3.1.0"
yaml-sexp
< "3.1.0"