Test a table cell through tableSite.isCell, and trace no row outside a table

This commit is contained in:
2026-09-29 12:13:33 +02:00
committed by Lillem4n
parent 4fcf45b5d0
commit 8793681d8a
6 changed files with 16 additions and 15 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ func linkRefs(root map[string]node) error {
// linkTemplate resolves t's references in category, "" for an inline template, and
// compiles its format against them.
func linkTemplate(folder []string, path, category string, t *template, root map[string]node) error {
if t.site.table != nil && t.site.row != formatRow {
if t.site.isCell() {
path = fmt.Sprintf("%s, line %d", path, t.site.row+2)
}
link, err := t.resolveLink(folder, path, category, root)