Block.Heading
Headings.
type atx_layout = {
indent : Layout.indent;
Indent to '#'
.
after_opening : Layout.blanks;
Blanks after '#'
.
closing : Layout.string;
Closing sequence of '#'
and blanks.
}
The type for ATX heading layout.
type setext_layout = {
leading_indent : Layout.indent;
Of heading first line.
*)trailing_blanks : Layout.blanks;
Of heading last line.
*)underline_indent : Layout.indent;
Indentation of underline.
*)underline_count : Layout.count node;
Underline char count.
*)underline_blanks : Layout.blanks;
Underline trailing blanks.
*)}
The type for setext heading layout.
The type for heading layouts.
make ~level text
is a heading with given parameters. layout
defaults to `Atx
so you should make sure text
has no breaks. level
is clamped to 1-6 or 1-2 depending on layout
. id
is an identifier for the heading.
val level : t -> int
level h
is the level of h
, from 1
to 6
.
id h
is the heading identifier (if any). Can be automatically derived at parse time from the heading inline
if heading_auto_ids:true
. Can also be derived later via Inline.id
.