mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
f10c0bcd4d
commit
98e8083122
3 changed files with 12 additions and 0 deletions
|
|
@ -812,6 +812,10 @@ func GetContainerText(container *ast.Node) string {
|
|||
buf := &bytes.Buffer{}
|
||||
buf.Grow(4096)
|
||||
leaf := treenode.FirstLeafBlock(container)
|
||||
if nil == leaf {
|
||||
return ""
|
||||
}
|
||||
|
||||
ast.Walk(leaf, func(n *ast.Node, entering bool) ast.WalkStatus {
|
||||
if !entering {
|
||||
return ast.WalkContinue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue