package mdx

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

Install

Dune Dependency

Authors

Maintainers

Sources

mdx-1.10.0.tbz
sha256=347209c2286ba491cf0d1da0afdbe27cc3ab2c640350c3df8093257672eb940c
sha512=00985ea419719c28e01ec1c66ad2ac0f7f16e0d30351ab4ed7d96fc1503f0fde9d135d7417dd309d4cb3508aca24061d3eed5d5065c60d2968ab189af1fb9d22

doc/mdx.top/Mdx_top/index.html

Module Mdx_top

Toplevel logic for mdx.

type t

The type for configuration values.

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

    The type for toplevel directives

    *)
val 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.

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

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

Innovation. Community. Security.