Return link's and format compile's outputs as templateLink and formatOps, assigned once in linkTemplate

This commit is contained in:
2026-09-28 23:37:32 +02:00
committed by Lillem4n
parent 243094e4ab
commit e257dc0e6e
17 changed files with 120 additions and 118 deletions
+1 -2
View File
@@ -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)
})
}