From ae621040de87204e619a18b3417392a84130f9f3 Mon Sep 17 00:00:00 2001 From: Daniel <845765@qq.com> Date: Sun, 4 Jan 2026 16:27:04 +0800 Subject: [PATCH] :art: Improve render callout in template Signed-off-by: Daniel <845765@qq.com> --- kernel/model/template.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kernel/model/template.go b/kernel/model/template.go index 950c18da9..ad92d1081 100644 --- a/kernel/model/template.go +++ b/kernel/model/template.go @@ -374,7 +374,7 @@ func RenderTemplate(p, id string, preview bool) (tree *parse.Tree, dom string, e if (ast.NodeListItem == n.Type && (nil == n.FirstChild || (3 == n.ListData.Typ && (nil == n.FirstChild.Next || ast.NodeKramdownBlockIAL == n.FirstChild.Next.Type)))) || (ast.NodeBlockquote == n.Type && nil != n.FirstChild && nil != n.FirstChild.Next && ast.NodeKramdownBlockIAL == n.FirstChild.Next.Type) || - (ast.NodeCallout == n.Type && nil != n.FirstChild && ast.NodeKramdownBlockIAL == n.FirstChild.Next.Type) { + (ast.NodeCallout == n.Type && nil != n.FirstChild && ast.NodeKramdownBlockIAL == n.FirstChild.Type) { nodesNeedAppendChild = append(nodesNeedAppendChild, n) }