getMarkerText Function

Returns the formatted marker text for a list item based on the marker type and item number. Supports ordered and unordered list markers, including alphabetic, Roman numeral, and numeric formats.

getMarkerText(marker: ListMarker, num: number): string

@returns The formatted marker string for the list item.

Parameter Type Description
marker ListMarker The type of list marker to use.
num number The item number in the list.

Returns - string

The formatted marker string for the list item.

Defined in

Last Updated: 07 October, 2025