Clean up pre/post ambiguity

This commit is contained in:
Christian Muehlhaeuser
2019-11-26 03:55:43 +01:00
parent c0d32b4fcb
commit 8f083a1043
9 changed files with 48 additions and 48 deletions
+4 -4
View File
@@ -19,10 +19,10 @@ func (e *ImageElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) erro
}
if len(node.LinkData.Destination) > 0 {
el := &BaseElement{
Token: resolveRelativeURL(tr.BaseURL, string(node.LinkData.Destination)),
Pre: " [Image: ",
Post: "]",
Style: Link,
Token: resolveRelativeURL(tr.BaseURL, string(node.LinkData.Destination)),
Prefix: " [Image: ",
Suffix: "]",
Style: Link,
}
el.Render(w, node, tr)
}