mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-10 04:59:03 +08:00
🐛 Focus block does not add the title when exporting as an image https://github.com/siyuan-note/siyuan/issues/10177
This commit is contained in:
parent
7d57bd07e7
commit
e0fb872cbf
@ -865,11 +865,13 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
oldRoot := ret.Root
|
||||||
ret = parse.Parse("", []byte(""), luteEngine.ParseOptions)
|
ret = parse.Parse("", []byte(""), luteEngine.ParseOptions)
|
||||||
first := ret.Root.FirstChild
|
first := ret.Root.FirstChild
|
||||||
for _, node := range nodes {
|
for _, node := range nodes {
|
||||||
first.InsertBefore(node)
|
first.InsertBefore(node)
|
||||||
}
|
}
|
||||||
|
ret.Root.KramdownIAL = oldRoot.KramdownIAL
|
||||||
}
|
}
|
||||||
ret.Path = bt.Path
|
ret.Path = bt.Path
|
||||||
ret.HPath = bt.HPath
|
ret.HPath = bt.HPath
|
||||||
|
Loading…
Reference in New Issue
Block a user