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).
HeadingLevel
The level to convert.
Converts the given number to a
HeadingLevelusing 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).