package mdx

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

Install

Dune Dependency

Authors

Maintainers

Sources

mdx-2.0.0.tbz
sha256=65b4cc7ff8891b8b1d183be13c26eb45ddbc5a8081ac6e200fd8ae043d592e45
sha512=676d73dd20586ad5457ad96c9f0b11d88a2caf5763935a317db88076fd611cedd27499bd574a140ed9f6c00d2b80e7e92e2cf66d5aece9e2bbc16ea9ad69fc67

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.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.