Hex Core JS
    Preparing search index...

    Function toHeadingLevel

    • Converts the given number to a HeadingLevel using the clamp function to clamp between the minimum (1) and maximum (6) heading levels. Useful when performing arithmetic on heading levels (e.g. incrementing by one level).

      Parameters

      • level: number

        The level to convert.

      Returns HeadingLevel