package kkmarkdown

  1. Overview
  2. Docs

Type of parsed markdown

Type definition

type stack_elt =
  1. | Em
  2. | Strong
  3. | EmStrong
  4. | Strike
  5. | Code
type span =
  1. | A of string
  2. | Br
  3. | CharSpan of char
  4. | CharsSpan of string
  5. | StackOpen of stack_elt
  6. | StackClose of stack_elt
  7. | UnicodeSpan of string
  8. | UnsafeA of {
    1. spans : span list;
    }
type list_typ =
  1. | Ordered
  2. | Unordered
type block =
  1. | CodeBlock of string list
  2. | H1 of span list
  3. | H2 of span list
  4. | H3 of span list
  5. | H4 of span list
  6. | H5 of span list
  7. | H6 of span list
  8. | Hr
  9. | List_ of list_typ * li list
  10. | P of span list
  11. | Quote of t
  12. | UnsafeCodeBlock of {
    1. cb : string list;
    2. classes : string list;
    }
  13. | UnsafeImg of {
    1. alt : string;
    2. classes : string list;
    }
  14. | UnsafeInlineHtml of string list
and li =
  1. | Li of span list
  2. | LiP of block list
and t = block list

Pretty printer

val pp : ?rss:bool -> Format.formatter -> t -> unit
OCaml

Innovation. Community. Security.