os_type label to enable/disable based on Sys.os_type (#433, @polytypic)mld files (#423, @jonludlam)ref, instead of always the official OCaml parser). This allows Camlp5's parser to be used with MDX. (#417, @chetmurthy)Normal syntax to Markdown to better explain what the syntax is and moved it to Mdx.Syntax (#412, @Leonidas-from-XIV)part-end MDX directive in the output, before that line would've been dropped (#374, #387, @Leonidas-from-XIV)mli files. (#339, #357, @julow, @Leonidas-from-XIV)dune MDX 0.2 stanza by setting the MDX_RUN_NON_DETERMINISTIC environment variable. (#365, #366, @Leonidas-from-XIV);; to the output of toplevel phrases that were missing it. (#346, @Leonidas-from-XIV)mdx binary anymore (#274, @gpetiot)rule command (#312, @gpetiot)require-package label, use the mdx stanza in dune instead. This label was only used for the rule command and can now be safely removed. (#363, @Leonidas-from-XIV);; (#342, @Leonidas-from-XIV)dune-gen subcommand that generates testing code for Dune to build and run with the new mdx stanza. (#305, @voodoos)ocaml, cram, toplevel or include. (#237, @gpetiot)#require directive errors (#276, @gpetiot)--root and --prelude are checked (#292, @gpetiot)create_process instead of execvp to call mdx-test from mdx. This fixes running mdx from dune on Windows (#299, @emillon)<!-- $MDX labels -->, where labels is a list of valid labels separated by a comma. This line has to immediately precede the block it is attached to. The legacy syntax is preserved and will be deprecated in a later release..mli files' doc comments (#206, @jsomers)Apply unnamed preludes to all environments (#271, @gpetiot) New behavior:
env_and_file "a:f" associates f to the environment named aenv_and_file " :f" associates f to the default environmentenv_and_file "f" associates f to all environments.mdx-error code block following the ocaml block instead of crashing the mdx process. Those mdx-error blocks are recognized and checked by mdx and can be intentionally used to show case specific compile errors. (#238, @gpetiot)(* $MDX part-... *) delimiters (#250, @gpetiot)set- and unset- labels (#257, @shonfeder)--duniverse-mode to ocaml-mdx rule so that the generated rules work within a duniversefile label. (#203, #207, @voodoos)--non-deterministic option through the MDX_RUN_NON_DETERMINISTIC env variables (#208, @NathanReb)--syntax is not set, and add 'markdown' as an alias to 'normal' (#222, @gpetiot)ocaml-mdx deps command to be used by dune to compute file and dir dependencies of an mdx file. (#217, @voodoos)INSIDE_DUNE when executing shell commands by default (#224, @NathanReb)ocaml-mdx test to crash on some include in toplevel code blocks (#202, @trefis)direction option, only synchronize from .ml to .md files (#214, @gpetiot)--output/-o option to the test subcommand to allow specifying a different output file to write the corrected to, or to write it to the standard output (#194, @NathanReb)let* bindings (#190, @gpetiot)--syntax option to rule subcommand to allow generating rules for cram tests (#177, @craigfe)require-package label to explicitly declare dune package dependencies of a code block (#149, @Julow)unset- label to unset env variables in shell blocks (#132, @clecat)ocaml-mdx rule using dune format-dune-file (#184, @NathanReb).ml files in generated dune rules (#140, @clecat)test (#176, @Julow)skip label in ocaml-mdx pp (#1561, @CraigFe).ml (#156, @Julow)[@@@parts ...] markers within module definitions (#155, @Julow).ml file when using to-ml direction (#139, @clecat)--force-output to .ml file as well (#137, @clecat).corrected files to be written in some cases (#136, @clecat)4.09.0 (#133, @xclerc)output subcommand as it was very specific to RealWorldOCaml needs (#195, @NathanReb)infer-timestamp direction (#171 @Julow)--force-output option to force generation of diff file (#118 @clecat)version=.., version<=.. and version>=.. keywords to run a code-block depending on the currently installed OCaml version (@gpetiot, #87, #90)ppx_tools for toplevel (@avsm, #89)mdx output: escape HTML entities in code blocks (#91, @samoht)mdx rule command to generate dune rules (@gpetiot, #44)mdx output command to generate an HTML document (@samoht, #45)cppo library, just the binary (@samoht, #53)dir=.. labels in ml code blocks (@samoht, #76)mdx rule (@samoht, #81)