Drafts Script Reference
    Preparing search index...

    Type Alias navigationMarker

    An object describing a navigation location, as defined by the syntax definition. navigationMarkers and related properties are available on both Editor and Draft objects.

    type navigationMarker = {
        label: string;
        length: number;
        level: number;
        location: number;
        prefix: string;
    }
    Index

    Properties

    label: string

    Label text for the marker.

    length: number

    The number of characters in the range.

    level: number

    Indentation level of the marker.

    location: number

    The start location of the range of text representing the marker.

    prefix: string

    Prefix text for the marker. Example: H1, H2 in Markdown