Cmarkit.BlockBlocks.
module Blank_line : sig ... endBlank lines.
module Block_quote : sig ... endBlock quotes.
module Code_block : sig ... endCode blocks.
module Heading : sig ... endHeadings.
module Html_block : sig ... endHTML blocks.
module List_item : sig ... endList items.
module List' : sig ... endLists.
module Paragraph : sig ... endParagraphs.
module Thematic_break : sig ... endThematic breaks.
type t += | Blank_line of Blank_line.t node| Block_quote of Block_quote.t node| Blocks of t list nodeSplicing
*)| Code_block of Code_block.t node| Heading of Heading.t node| Html_block of Html_block.t node| Link_reference_definition of Link_definition.t node| List of List'.t node| Paragraph of Paragraph.t node| Thematic_break of Thematic_break.t nodeval empty : tempty is Blocks ([], Meta.none).
See the description of extensions.
module Table : sig ... endTables.
module Footnote : sig ... endFootnotes.
type t += | Ext_math_block of Code_block.t node| Ext_table of Table.t node| Ext_footnote_definition of Footnote.t nodeThe supported block extensions. These blocks are only parsed when Doc.of_string is called with strict:false.
meta ~ext b is the metadata of b.
ext is called on cases not defined in this module. The default raies Invalid_argument.
normalize b has the same content as b but is such that for any occurence of Blocks (bs, _) in b the list of blocks bs:
bs is not a singleton list.Blocks _ case. The meta is dropped and the nested blocks are spliced in bs where the case occurs.ext is called on cases not defined in this module. The default raises Invalid_argument.
val defs :
?ext:(Label.defs -> t -> Label.defs) ->
?init:Label.defs ->
t ->
Label.defsdefs b collects b's Link_reference_definition and Ext_footnote_definition and for those that have a label definition (see Link_definition.defined_label and Footnote.defined_label) adds them to init (defaults to Label.Map.empty).
ext is called on cases not defined in this module. The default raises Invalid_argument.