package mdx

  1. Overview
  2. Docs
Executable code blocks inside markdown files

Install

Dune Dependency

Authors

Maintainers

Sources

mdx-2.3.0.tbz
sha256=32a08398100afd2d2e7988bc3b45c9b69971271f7ab708851ded3843c9470661
sha512=b16d257fa9e515318dba22a1eb7a19f59c40414cdbeaaee0e48b6384f74b56497fd0e547b234a1329b7334d2fbdbb7c256fdf8406ae1d1f85b49dd5c5025eba2

doc/mdx.top/Mdx_top/index.html

Module Mdx_topSource

Toplevel logic for mdx.

Sourcetype t

The type for configuration values.

Sourcetype directive =
  1. | Directory of string
  2. | Load of string
    (*

    The type for toplevel directives

    *)
Sourceval init : verbose:bool -> silent:bool -> verbose_findlib:bool -> directives:directive list -> packages:string list -> predicates:string list -> unit -> t

init () is a new configuration value.

Sourceval eval : t -> string list -> (string list, string list) result

eval t p evaluates the toplevel phrase p (possibly spawning on mulitple lines) with the configuration value t.

Sourceval in_env : Mdx.Ocaml_env.t -> (unit -> 'a) -> 'a
OCaml

Innovation. Community. Security.