Block.HeadingSourceHeadings.
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.
The type for heading identifiers. This notion does not exist in CommonMark.
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.