mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 12:50:16 +01:00
🎨 Improve the handling of inline-math containing | in the table https://github.com/siyuan-note/siyuan/issues/9227
This commit is contained in:
parent
859a541155
commit
734114e052
8 changed files with 34 additions and 13 deletions
|
|
@ -1357,6 +1357,27 @@ func exportSYZip(boxID, rootDirPath, baseFolderName string, docPaths []string) (
|
|||
}
|
||||
}
|
||||
|
||||
// 导出数据库 Attribute View export https://github.com/siyuan-note/siyuan/issues/8710
|
||||
for _, tree := range trees {
|
||||
ast.Walk(tree.Root, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if ast.NodeAttributeView != n.Type {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
avID := n.AttributeViewID
|
||||
if avJSONPath := av.GetAttributeViewDataPath(avID); !gulu.File.IsExist(avJSONPath) {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
return ast.WalkContinue
|
||||
})
|
||||
|
||||
}
|
||||
|
||||
// 导出自定义排序
|
||||
sortPath := filepath.Join(util.DataDir, box.ID, ".siyuan", "sort.json")
|
||||
fullSortIDs := map[string]int{}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue