package forester

  1. Overview
  2. Docs
module MethodTable : sig ... end
type node =
  1. | Text of string
  2. | Transclude of transclusion_opts * string
  3. | Query of transclusion_opts * t Query.t
  4. | Xml_tag of string * (string * t) list * t
  5. | Unresolved of string
  6. | Embed_tex of {
    1. packages : string list;
    2. source : t;
    }
  7. | Img of {
    1. path : string;
    }
  8. | Block of t * t
  9. | If_tex of t * t
  10. | Prim of Prim.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 Range.located list
and env
val show_transclusion_opts : transclusion_opts -> Ppx_deriving_runtime.string
type obj_method = {
  1. body : Syn.t;
  2. self : Core__.Symbol.t;
  3. super : Core__.Symbol.t;
  4. env : env;
}
type obj = {
  1. prototype : Core__.Symbol.t option;
  2. methods : obj_method MethodTable.t;
}
val is_whitespace : node Range.located -> bool
val strip_whitespace : node Range.located list -> node Range.located list
val trim_whitespace : node Range.located list -> node Range.located list
val sentence_case : node Range.located list -> node Range.located list
val apply_modifier : [< `Sentence_case ] option -> node Range.located list -> node Range.located list
type tree = {
  1. title : t option;
  2. taxon : string option;
  3. authors : string list;
  4. dates : Prelude.Date.t list;
  5. addr : string option;
  6. metas : (string * t) list;
  7. tags : string list;
  8. body : t;
  9. source_path : string option;
}
val string_of_nodes : t -> string

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

module Util : sig ... end
module Query : sig ... end
OCaml

Innovation. Community. Security.