Skip to content

Commit

Permalink
Update AppendMarkdown documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
dweymouth authored May 29, 2024
1 parent 7c207d7 commit c118b65
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions widget/markdown.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ func (t *RichText) ParseMarkdown(content string) {

// AppendMarkdown parses the given markdown string and appends the
// content to the widget, with the appropriate formatting.
// This API is intended for appending complete markdown documents or
// standalone fragments, and should not be used to parse a single
// markdown document piecewise. Use ParseMarkdown for this case.
//
// Since: 2.5
func (t *RichText) AppendMarkdown(content string) {
t.Segments = append(t.Segments, parseMarkdown(content)...)
t.Refresh()
Expand Down

0 comments on commit c118b65

Please sign in to comment.