From ce0bc5be3b5e30f06b06d0f68289a3b0b6fa77b1 Mon Sep 17 00:00:00 2001 From: Sasha Koshka Date: Wed, 14 Aug 2024 11:45:10 -0400 Subject: [PATCH] Add MenuHeading --- heading.go | 6 ++++++ 1 file changed, 6 insertions(+) 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 +}