diff --git a/heading.go b/heading.go index 04c4b93..914e130 100644 --- a/heading.go +++ b/heading.go @@ -23,3 +23,9 @@ func NewHeading (level int, text string) *Heading { return this } +// NewMenuHeading creatss a new heading for use in menus. +func NewMenuHeading (text string) *Heading { + heading := NewHeading(0, text) + heading.SetTag("menu", true) + return heading +}