🎨 导入单个 Md 时设置格式版本

This commit is contained in:
Liang Ding 2022-10-27 22:52:54 +08:00
parent 28f7812fdd
commit d60e73cd4c
No known key found for this signature in database
GPG Key ID: 136F30F901A2231D

View File

@ -584,6 +584,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
tree.Box = boxID
tree.Path = targetPath
tree.HPath = path.Join(baseHPath, title)
tree.Root.Spec = "1"
luteEngine.NestedInlines2FlattedSpans(tree)
docDirLocalPath := filepath.Dir(filepath.Join(boxLocalPath, targetPath))