package cmarkit
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
CommonMark parser and renderer for OCaml
Install
dune-project
Dependency
Authors
Maintainers
Sources
cmarkit-0.3.0.tbz
sha512=42fa920e84f2b7d45f5cf1251d3308daa7becff2590f7ce84186cb22335415b02cc9bc44179095bf0d37624fb5a0e66d1c96fcc1b12f1106f567247a71c79039
doc/cmarkit/Cmarkit/Block/Heading/index.html
Module Block.HeadingSource
Headings.
Source
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.
Source
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.
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>