levelcontentlabelTypelabel
Analogues
Heading
HTML <h1>: Closest HTML analogue for heading semantics, although Stencila uses one type with an explicit levelrather than separate h1to h6element types. JATS <title>: Closest JATS analogue for section and container titles, though JATS heading semantics are tied to parent structures rather than a standalone heading node with explicit level. Pandoc Header: Close block analogue with an explicit level; Stencila also supports labeling, authorship, and provenance metadata on headings. MDAST Heading: Closest MDAST block analogue for headings.
Properties
Heading
labelType | AppendixLabel | LabelType | |
label | String | ||
level | Integer | ||
content | Inline | ||
authors | Author | ||
provenance | ProvenanceCount | ||
id | String | Entity |
Related
Heading
Parents: EntityChildren: none
Bindings
Heading
Testing
Heading
labelType | None | ||
label | None | ||
level | 1 | ||
1..=6i64 | |||
0..=6i64 | |||
i64::arbitrary() | |||
content | vec_inlines(1) | ||
vec_inlines(2) | |||
vec_inlines(4) | |||
vec(Inline::arbitrary(), size_range(0..=8)) |
Heading.yamldocs_types.rs