diff --git a/present/link.go b/present/link.go index 5885eb14..2aead352 100644 --- a/present/link.go +++ b/present/link.go @@ -24,7 +24,7 @@ func (l Link) TemplateName() string { return "link" } func parseLink(ctx *Context, fileName string, lineno int, text string) (Elem, error) { args := strings.Fields(text) - if len(args) < 3 { + if len(args) < 2 { return nil, fmt.Errorf("link element must have at least 2 arguments") } url, err := url.Parse(args[1])