Add image_text style, which lets you change the look of an image's name/alt

This commit is contained in:
Christian Muehlhaeuser
2019-11-28 02:27:00 +01:00
parent 59b8ecde6d
commit 8ddf4be8b2
3 changed files with 7 additions and 6 deletions
+1 -2
View File
@@ -32,8 +32,7 @@ func (e *LinkElement) Render(w io.Writer, node *bf.Node, tr *TermRenderer) error
if len(node.LinkData.Destination) > 0 {
el := &BaseElement{
Token: resolveRelativeURL(tr.BaseURL, string(node.LinkData.Destination)),
Prefix: " (",
Suffix: ")",
Prefix: " ",
Style: Link,
}
err := el.Render(w, node, tr)