gatelineAPI reference
interface Section {
    body: string;
    depth: null | 2 | 1;
    heading: null | string;
    headingLine: null | string;
}

Properties

body: string

The section's body, without its heading line.

depth: null | 2 | 1

1 or 2: an H1 (a review's appended round, say) opens a section too, so nothing hides under the previous H2.

heading: null | string

The heading text, or null for whatever precedes the first heading.

headingLine: null | string

The heading line itself, when there is one — rendered by whoever renders the heading.