|
@@ -31,7 +31,7 @@ func (page *Page) SetCopyright(s string) *Page {
|
|
|
}
|
|
|
|
|
|
func (page *Page) AddPlainIntro(s string) *Page {
|
|
|
- page.Intros = append(page.Intros, element.NewText(s, element.WithTextTag(atom.P)))
|
|
|
+ page.Intros = append(page.Intros, element.NewElement(atom.P, s))
|
|
|
return page
|
|
|
}
|
|
|
|
|
@@ -56,12 +56,12 @@ func (page *Page) AddTimeline(t *element.Timeline) *Page {
|
|
|
}
|
|
|
|
|
|
func (page *Page) AddButtonAction(s string, btn *element.Button) *Page {
|
|
|
- page.Actions = append(page.Actions, &element.Action{Instructions: element.NewText(s, element.WithTextTag(atom.P)), Button: btn})
|
|
|
+ page.Actions = append(page.Actions, &element.Action{Instructions: element.NewElement(atom.P, s), Button: btn})
|
|
|
return page
|
|
|
}
|
|
|
|
|
|
func (page *Page) AddInviteCodeAction(s string, code string) *Page {
|
|
|
- page.Actions = append(page.Actions, &element.Action{Instructions: element.NewText(s, element.WithTextTag(atom.P)), InviteCode: code})
|
|
|
+ page.Actions = append(page.Actions, &element.Action{Instructions: element.NewElement(atom.P, s), InviteCode: code})
|
|
|
return page
|
|
|
}
|
|
|
|
|
@@ -71,7 +71,7 @@ func (page *Page) AddOutro(ele element.Element) *Page {
|
|
|
}
|
|
|
|
|
|
func (page *Page) AddPlainOutro(s string) *Page {
|
|
|
- page.Outros = append(page.Outros, element.NewText(s, element.WithTextTag(atom.P)))
|
|
|
+ page.Outros = append(page.Outros, element.NewElement(atom.P, s))
|
|
|
return page
|
|
|
}
|
|
|
|