22
33## MDX
44
5- MDX allows to execute code blocks inside markdown and mli documentation
5+ MDX allows to execute code blocks inside markdown and mli/mld documentation
66to help keeping them up to date.
77
88Use the
@@ -20,7 +20,7 @@ If you want to contribute to the project, please see the
2020
2121### Basic Usage
2222
23- You can use MDX with your Markdown or ` .mli ` documentation, which ensures
23+ You can use MDX with your Markdown or ` .ml{i,d} ` documentation, which ensures
2424code in multi-line or verbatim code blocks is correct.
2525
2626To enable MDX on specific files you must first enable it for your project by
@@ -113,7 +113,7 @@ dune promote
113113Now the documentation is up-to-date and running ` dune runtest ` again should be
114114successful!
115115
116- Note that to use the ` dune runtest/promote ` workflow with ` mli ` files,
116+ Note that to use the ` dune runtest/promote ` workflow with ` mli ` or ` mld ` files,
117117you will need to adjust the ` mdx ` stanza in the ` dune ` file, as by
118118[ default] ( https://dune.readthedocs.io/en/latest/dune-files.html#mdx-since-2-4 ) ,
119119Dune only checks markdown files with ` mdx ` . E.g.,
@@ -138,7 +138,7 @@ block it is attached to.
138138 ```ocaml
139139 ```
140140
141- The ` .mli ` syntax for this is is slightly different to match the conventions of
141+ The ` .mli ` and ` .mld ` syntax for this is is slightly different to match the conventions of
142142OCaml documentation comments:
143143
144144 (** This is an documentation comment with an ocaml block
0 commit comments