package omd

  1. Overview
  2. Docs
and ref_container = < add_ref : string -> string -> string -> unit ; get_ref : string -> string * string >
and element = Omd_representation.element =
  1. | Paragraph of t
  2. | Text of string
  3. | Emph of t
  4. | Bold of t
  5. | Ul of t list
  6. | Ol of t list
  7. | Ulp of t list
  8. | Olp of t list
  9. | Code of string
  10. | Code_block of string
  11. | Br
  12. | Hr
  13. | Url of href * t * title
  14. | Ref of ref_container * name * string
  15. | Img_ref of ref_container * name * alt
  16. | Html of string
  17. | Html_block of string
  18. | Html_comments of string
  19. | H1 of t
  20. | H2 of t
  21. | H3 of t
  22. | H4 of t
  23. | H5 of t
  24. | H6 of t
  25. | Blockquote of t
  26. | Img of alt * src * title
  27. | NL
  28. | X of < name : string ; to_html : ?indent:int -> (t -> string) -> t -> string option ; to_sexpr : (t -> string) -> t -> string option ; to_t : t -> t option >
and name = string
and alt = string
and src = string
and href = string
and title = string
type tok = Omd_representation.tok =
  1. | Ampersand
  2. | Ampersands of int
  3. | At
  4. | Ats of int
  5. | Backquote
  6. | Backquotes of int
  7. | Backslash
  8. | Backslashs of int
  9. | Bar
  10. | Bars of int
  11. | Caret
  12. | Carets of int
  13. | Cbrace
  14. | Cbraces of int
  15. | Colon
  16. | Colons of int
  17. | Comma
  18. | Commas of int
  19. | Cparenthesis
  20. | Cparenthesiss of int
  21. | Cbracket
  22. | Cbrackets of int
  23. | Dollar
  24. | Dollars of int
  25. | Dot
  26. | Dots of int
  27. | Doublequote
  28. | Doublequotes of int
  29. | Exclamation
  30. | Exclamations of int
  31. | Equal
  32. | Equals of int
  33. | Greaterthan
  34. | Greaterthans of int
  35. | Hash
  36. | Hashs of int
  37. | Lessthan
  38. | Lessthans of int
  39. | Minus
  40. | Minuss of int
  41. | Newline
  42. | Newlines of int
  43. | Number of string
  44. | Obrace
  45. | Obraces of int
  46. | Oparenthesis
  47. | Oparenthesiss of int
  48. | Obracket
  49. | Obrackets of int
  50. | Percent
  51. | Percents of int
  52. | Plus
  53. | Pluss of int
  54. | Question
  55. | Questions of int
  56. | Quote
  57. | Quotes of int
  58. | Semicolon
  59. | Semicolons of int
  60. | Slash
  61. | Slashs of int
  62. | Space
  63. | Spaces of int
  64. | Star
  65. | Stars of int
  66. | Tab
  67. | Tabs of int
  68. | Tilde
  69. | Tildes of int
  70. | Underscore
  71. | Underscores of int
  72. | Word of string
  73. | Tag of extension
and extensions = extension list
and extension = t -> tok list -> tok list -> (t * tok list * tok list) option
val lex : string -> tok list
val parse : ?extensions:extensions -> tok list -> t
val make_paragraphs : t -> t
val to_html : ?pindent:bool -> ?nl2br:bool -> t -> string
val to_markdown : t -> string
val to_text : t -> string
OCaml

Innovation. Community. Security.