跳到主要内容

display-current-heading-number

Display the current heading number on the page.

Parameters

level : int | auto    default: auto

The level of the heading. If level is auto, it will return the last heading on or before the current page. If level is a number, it will return the last heading on or before the current page with the same level.

numbering : str | auto    default: auto

The numbering of the heading. If auto, uses the heading's own numbering. If a string, uses that as the numbering pattern.

hierachical : bool    default: true

Whether to return the heading hierarchically. If true, returns the last heading according to the hierarchical structure. If false, returns the last heading on or before the current page with the same level.

depth : int    default: 9999

The maximum depth of the heading to search. Usually, it should be set as slide-level.

Returns: content