Signed-off-by: Daniel <845765@qq.com>
This commit is contained in:
Daniel 2025-12-16 20:55:02 +08:00
parent 5a3ad845d2
commit 2dbef55788
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 3 additions and 3 deletions

View file

@ -608,7 +608,7 @@ func buildLinkRefs(defRootID string, refs []*sql.Ref, keywords []string) (ret []
continue continue
} }
if "NodeListItem" == parent.Type || "NodeBlockquote" == parent.Type || "NodeSuperBlock" == parent.Type { if "NodeListItem" == parent.Type || "NodeBlockquote" == parent.Type || "NodeSuperBlock" == parent.Type || "NodeCallout" == parent.Type {
refBlock := parentRefParagraphs[parent.ID] refBlock := parentRefParagraphs[parent.ID]
if nil == refBlock { if nil == refBlock {
continue continue

View file

@ -85,7 +85,7 @@ type RiffCard struct {
func (block *Block) IsContainerBlock() bool { func (block *Block) IsContainerBlock() bool {
switch block.Type { switch block.Type {
case "NodeDocument", "NodeBlockquote", "NodeList", "NodeListItem", "NodeSuperBlock": case "NodeDocument", "NodeBlockquote", "NodeList", "NodeListItem", "NodeSuperBlock", "NodeCallout":
return true return true
} }
return false return false

View file

@ -650,7 +650,7 @@ func buildBacklinkListItemRefs(refDefs []*RefDefs) (originalRefBlockIDs map[stri
continue continue
} }
if "NodeListItem" == parent.Type || "NodeBlockquote" == parent.Type || "NodeSuperBlock" == parent.Type { if "NodeListItem" == parent.Type || "NodeBlockquote" == parent.Type || "NodeSuperBlock" == parent.Type || "NodeCallout" == parent.Type {
refBlock := parentRefParagraphs[parent.ID] refBlock := parentRefParagraphs[parent.ID]
if nil == refBlock { if nil == refBlock {
continue continue