mdx
Mdx.Document
mdx.test
mdx.top
type line =
| Section of int * string
| Text of string
| Block of Block.t
The type for the lines of a markdown or cram file.
val pp_line : ?syntax:Syntax.t -> line Fmt.t
pp_line is the pretty-printer for markdown or cram lines.
pp_line
type t = line list
The type for mdx documents.
val pp : ?syntax:Syntax.t -> t Fmt.t
pp is the pretty printer for mdx documents. Should be idempotent with of_string.
pp
of_string
val dump : t Fmt.t
dump is the printer for dumping mdx documents. Useful for debugging.
dump
val to_string : t -> string
to_string t converts the document t to a string.
to_string t
t
val envs : t -> Ocaml_env.Set.t