mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-22 23:14:07 +01:00
🎨 导入单个 Md 时设置格式版本
This commit is contained in:
parent
28f7812fdd
commit
d60e73cd4c
1 changed files with 1 additions and 0 deletions
|
|
@ -584,6 +584,7 @@ func ImportFromLocalPath(boxID, localPath string, toPath string) (err error) {
|
||||||
tree.Box = boxID
|
tree.Box = boxID
|
||||||
tree.Path = targetPath
|
tree.Path = targetPath
|
||||||
tree.HPath = path.Join(baseHPath, title)
|
tree.HPath = path.Join(baseHPath, title)
|
||||||
|
tree.Root.Spec = "1"
|
||||||
luteEngine.NestedInlines2FlattedSpans(tree)
|
luteEngine.NestedInlines2FlattedSpans(tree)
|
||||||
|
|
||||||
docDirLocalPath := filepath.Dir(filepath.Join(boxLocalPath, targetPath))
|
docDirLocalPath := filepath.Dir(filepath.Join(boxLocalPath, targetPath))
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue