Skip to content

Commit

Permalink
🐛 Focus block does not add the title when exporting as an image #10177
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Jan 15, 2024
1 parent 7d57bd0 commit e0fb872
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions kernel/model/export.go
Original file line number Diff line number Diff line change
Expand Up @@ -865,11 +865,13 @@ func prepareExportTree(bt *treenode.BlockTree) (ret *parse.Tree) {
}
}

oldRoot := ret.Root
ret = parse.Parse("", []byte(""), luteEngine.ParseOptions)
first := ret.Root.FirstChild
for _, node := range nodes {
first.InsertBefore(node)
}
ret.Root.KramdownIAL = oldRoot.KramdownIAL
}
ret.Path = bt.Path
ret.HPath = bt.HPath
Expand Down

0 comments on commit e0fb872

Please sign in to comment.