package graft

  1. Overview
  2. Docs

Module Graft.MarkdownSource

Sourceval parse_jekyll_format : string -> (Yaml.value option * Cmarkit.Doc.t, Forester_core.Reporter.Message.t Asai__.Diagnostic.t) result
Sourceval inline_to_string : Cmarkit.Inline.t -> string
Sourceval make_ident : ?ident_range:Forester_core.Range.t -> ?group_range:Forester_core.Range.t -> ident:string -> Forester_core.Code.t -> Forester_core.Code.t
Sourceval doc : string -> Lsp.Text_document.t
Sourceval needs_verb : string -> bool
Sourcetype html =
  1. | Text of string
  2. | Element of string * (string * string) list * html list
Sourceval parse_html : string -> html option
Sourceval pp_html_attr : Format.formatter -> (string * string) -> unit
Sourceval pp_attrs : Format.formatter -> (string * string) list -> unit
Sourceval convert_html_to_forester : html -> string
Sourcetype 'a tree = 'a node list
Sourceand 'a node = {
  1. heading : Cmarkit.Inline.t;
  2. level : int;
  3. value : 'a;
  4. children : 'a node list;
}
Sourceval pp_tree : (Format.formatter -> 'a -> unit) -> Format.formatter -> 'a node list -> unit
Sourceval fold : f:('a -> 'b -> 'a) -> acc:'a -> 'b node -> 'a
Sourceval insert_node : 'a node -> 'a node list -> 'a node list
Sourceval add_block_to_level : level:int -> 'a -> 'a list node list -> 'a list node list
Sourceval doc_to_tree : Cmarkit.Doc.t -> Cmarkit.Block.t list * Cmarkit.Block.t list tree
Sourceval code_of_yaml : [> `O of (string * [> `Bool of bool | `Float of float | `O of (string * [> `Bool of bool | `String of string ]) list | `String of string ]) list ] option -> Forester_core.Code.node list
OCaml

Innovation. Community. Security.