package bracetax

  1. Overview
  2. Docs

A stack of bracetax environments.

type image_size = [
  1. | `none
  2. | `wpx of int
  3. | `wpercent of int
]
type environment = [
  1. | `cmd_end
  2. | `cmd_inside of environment
  3. | `cmd_begin of string * string list
  4. | `unknown of string * string list
  5. | `italic
  6. | `bold
  7. | `mono_space
  8. | `superscript
  9. | `subscript
  10. | `paragraph
  11. | `new_line
  12. | `quotation of string * string
  13. | `non_break_space
  14. | `horizontal_ellipsis
  15. | `en_dash
  16. | `em_dash
  17. | `open_brace
  18. | `close_brace
  19. | `sharp
  20. | `utf8_char of int
  21. | `code of string list
  22. | `bypass
  23. | `text
  24. | `ignore
  25. | `list of [ `itemize | `numbered ] * string list * bool ref
  26. | `item
  27. | `section of int * string
  28. | `image of string * image_size * string
  29. | `header
  30. | `title
  31. | `authors
  32. | `subtitle
  33. | `table of int * string option
  34. | `cell of bool * int * [ `right | `center | `left ]
  35. | `note
  36. | `quote
]
type t = environment list ref
val empty : unit -> 'a list ref
val push : 'a list ref -> 'b -> unit
val pop : 'a list ref -> 'b option
val head : 'a list ref -> 'b option
val to_list : 'a ref -> 'a
OCaml

Innovation. Community. Security.