Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func New ¶
New Creates a new mark element with the given child nodes. Example: mark.New(text.Text("highlighted text")) Renders: <mark>highlighted text</mark>
func RawText ¶
func RawText(str string) *element
RawText Creates a new mark element with raw text content as unescaped HTML. Example: mark.RawText("<strong>important</strong> result") Renders: <mark><strong>important</strong> result</mark>
func RawTextf ¶
RawTextf Creates a new mark element with formatted raw text content as unescaped HTML using text.RawTextf. Example: mark.RawTextf("Hello <em>%s</em>", "World") Renders: <mark>Hello <em>World</em></mark>
func Static ¶
func Static(str string) *element
Static Creates a new mark element with static text content. Example: mark.Static("Hello World") Renders: <mark>Hello World</mark>