فهرست منبع

:bug: Export PDF preview fails to load https://github.com/siyuan-note/siyuan/issues/8126

Liang Ding 2 سال پیش
والد
کامیت
b5a2763fcf
1فایلهای تغییر یافته به همراه4 افزوده شده و 0 حذف شده
  1. 4 0
      kernel/model/export.go

+ 4 - 0
kernel/model/export.go

@@ -1624,6 +1624,10 @@ func exportTree(tree *parse.Tree, wysiwyg, expandKaTexMacros, keepFold bool,
 				return ast.WalkContinue
 			} else if treenode.IsFileAnnotationRef(n) {
 				refID := n.TextMarkFileAnnotationRefID
+				if !strings.Contains(refID, "/") {
+					return ast.WalkSkipChildren
+				}
+
 				status := processFileAnnotationRef(refID, n, fileAnnotationRefMode)
 				unlinks = append(unlinks, n)
 				return status