Return link's and format compile's outputs as templateLink and formatOps, assigned once in linkTemplate
This commit is contained in:
@@ -168,7 +168,6 @@ func linkNodeRefs(scope nodeScope, root map[string]node) error {
|
||||
if !ok {
|
||||
return nil
|
||||
}
|
||||
t.keyDrawGroup("")
|
||||
for _, name := range refTokens(t.tokens) {
|
||||
sigil, rest, err := refShape(name)
|
||||
if err != nil {
|
||||
@@ -178,6 +177,6 @@ func linkNodeRefs(scope nodeScope, root map[string]node) error {
|
||||
return fmt.Errorf("%s: reference {%s}: an inline template has no folder; write {/%s}", path, name, rest)
|
||||
}
|
||||
}
|
||||
return linkTemplateRefs(nil, path, "", t, root)
|
||||
return linkTemplate(nil, path, "", t, root)
|
||||
})
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user