package forester

  1. Overview
  2. Docs
type attr = string * string
val pp_attr : Ppx_deriving_runtime.Format.formatter -> attr -> Ppx_deriving_runtime.unit
type node =
  1. | Text of string
  2. | Transclude of transclusion_opts * string
  3. | Query of transclusion_opts * t Query.t
  4. | Tag of string * attr list * t
  5. | Embed_tex of {
    1. packages : string list;
    2. source : t;
    }
  6. | Block of t * t
  7. | If_tex of t * t
and transclusion_opts = {
  1. toc : bool;
  2. show_heading : bool;
  3. show_metadata : bool;
  4. title_override : t option;
  5. taxon_override : string option;
  6. expanded : bool;
  7. numbered : bool;
}
and t = node list
and env = t Stdlib__Map.Make(Core__.Symbol).t
val pp_node : Ppx_deriving_runtime.Format.formatter -> node -> Ppx_deriving_runtime.unit
val pp_transclusion_opts : Ppx_deriving_runtime.Format.formatter -> transclusion_opts -> Ppx_deriving_runtime.unit
val show_transclusion_opts : transclusion_opts -> Ppx_deriving_runtime.string
val pp : Ppx_deriving_runtime.Format.formatter -> t -> Ppx_deriving_runtime.unit
val pp_env : Ppx_deriving_runtime.Format.formatter -> env -> Ppx_deriving_runtime.unit
val sentence_case : node list -> node list
type doc = {
  1. title : t option;
  2. taxon : string option;
  3. authors : string list;
  4. date : Prelude.Date.t option;
  5. addr : string option;
  6. metas : (string * t) list;
  7. tags : string list;
  8. body : t;
}
val pp_doc : Ppx_deriving_runtime.Format.formatter -> doc -> Ppx_deriving_runtime.unit
val string_of_nodes : t -> string

Best-effort rendering of a nodes as a string, to use in text-only contexts.

module Doc : sig ... end
OCaml

Innovation. Community. Security.