mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
♻️ 移除旧版中的行级元素实现代码 https://github.com/siyuan-note/siyuan/issues/6819
This commit is contained in:
parent
c69983c56c
commit
637f1427e4
11 changed files with 24 additions and 322 deletions
|
|
@ -128,17 +128,12 @@ func ImportSY(zipPath, boxID, toPath string) (err error) {
|
|||
if !entering {
|
||||
return ast.WalkContinue
|
||||
}
|
||||
|
||||
if treenode.IsBlockRef(n) {
|
||||
defID, _, _ := treenode.GetBlockRef(n)
|
||||
newDefID := blockIDs[defID]
|
||||
if "" != newDefID {
|
||||
if ast.NodeBlockRef == n.Type {
|
||||
if id := n.ChildByType(ast.NodeBlockRefID); nil != id {
|
||||
id.Tokens = []byte(newDefID)
|
||||
}
|
||||
} else {
|
||||
n.TextMarkBlockRefID = newDefID
|
||||
}
|
||||
n.TextMarkBlockRefID = newDefID
|
||||
}
|
||||
} else if ast.NodeBlockQueryEmbedScript == n.Type {
|
||||
for oldID, newID := range blockIDs {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue