Module Odoc_model.CommentSource
module Path = Odoc_model.Paths.Pathmodule Reference = Odoc_model.Paths.Referencemodule Identifier = Odoc_model.Paths.IdentifierSource
type leaf_inline_element = [ | `Space| `Word of string| `Code_span of string| `Math_span of string| `Raw_markup of Odoc_model.Comment.raw_markup_target * string
]Source
type non_link_inline_element = [ | Odoc_model.Comment.leaf_inline_element| `Styled of Odoc_model.Comment.style * Odoc_model.Comment.non_link_inline_element Odoc_model.Comment.with_location list
]Source
type link_content =
Odoc_model.Comment.non_link_inline_element Odoc_model.Comment.with_location
listSource
type inline_element = [ | Odoc_model.Comment.leaf_inline_element| `Styled of Odoc_model.Comment.style * Odoc_model.Comment.inline_element Odoc_model.Comment.with_location list| Odoc_model.Comment.reference_element| `Link of string * Odoc_model.Comment.link_content
]Source
type module_reference = {module_reference : Reference.Module.t;module_synopsis : Odoc_model.Comment.paragraph option;
}The {!modules: ...} markup. module_synopsis is initially None, it is resolved during linking.
Source
type 'a abstract_table = {data : 'a Odoc_model.Comment.grid;align : Odoc_model.Comment.alignment option list option;
}Source
type media_element = [ | `Media of Odoc_model.Comment.media_href * Odoc_model.Comment.media * string
]Source
type code_block = {meta : Odoc_parser.Ast.code_block_meta option;delimiter : string option;content : string Odoc_model.Comment.with_location;(*This is the raw content, that is the exact string inside the delimiters. In order to get the "processed" content, see
*)Odoc_parser.codeblock_contentoutput : Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list option;
}Source
and nestable_block_element = [ | `Paragraph of Odoc_model.Comment.paragraph| `Code_block of Odoc_model.Comment.code_block| `Math_block of string| `Verbatim of string| `Modules of Odoc_model.Comment.module_reference list| `Table of Odoc_model.Comment.nestable_block_element Odoc_model.Comment.abstract_table| `List of [ `Unordered | `Ordered ] * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list list| Odoc_model.Comment.media_element
]Source
type tag = [ | `Author of string| `Deprecated of Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `Param of string * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `Raise of [ `Code_span of string | Odoc_model.Comment.reference_element ] * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `Return of Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `See of [ `Url | `File | `Document ] * string * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `Since of string| `Before of string * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list| `Version of string| `Alert of string * string option| `Custom of string * Odoc_model.Comment.nestable_block_element Odoc_model.Comment.with_location list
]Source
type heading_attrs = {heading_level : Odoc_model.Comment.heading_level;heading_label_explicit : bool;(*Whether the label have been written by the user.
*)
}Source
type block_element = [ | Odoc_model.Comment.nestable_block_element| `Heading of Odoc_model.Comment.heading_attrs * Identifier.Label.t * Odoc_model.Comment.inline_element Odoc_model.Comment.with_location list| `Tag of Odoc_model.Comment.tag
]The synopsis is the first element of a comment if it is a paragraph. Otherwise, there is no synopsis.
Source
val link_content_of_inline_element :
Odoc_model.Comment.inline_element Odoc_model.Comment.with_location ->
Odoc_model.Comment.link_contentSource
val link_content_of_inline_elements :
Odoc_model.Comment.inline_element Odoc_model.Comment.with_location list ->
Odoc_model.Comment.non_link_inline_element Odoc_model.Comment.with_location
listSource
val find_zero_heading :
[> `Heading of
Odoc_model.Comment.heading_attrs
* 'a
* Odoc_model.Comment.inline_element Odoc_model.Comment.with_location
list ]
Odoc_model.Location_.with_location
Odoc_utils.List.t ->
Odoc_model.Comment.link_content option