package mdx

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

Install

dune-project
 Dependency

Authors

Maintainers

Sources

mdx-2.6.0.tbz
sha256=38011f9c0d0ba2044fdf8c21c530ac806211e7b730daa52827988e0c7e43763c
sha512=9c5c26abfb5437aa89dff4c2f24c68e788d9d564a0210d5fa0857a259e50c82e0cf642e24c8bbb1f25f6bb04287cdb369f135220172478c7dd02429a5879410b

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