🎨 Query embed block supports executing JavaScript https://github.com/siyuan-note/siyuan/issues/9648

This commit is contained in:
Daniel 2023-11-18 12:03:22 +08:00
parent 7a0aab7eac
commit e24a724630
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
5 changed files with 59 additions and 3 deletions

View file

@ -580,7 +580,7 @@ func getBlock(id string, tree *parse.Tree) (ret *Block, err error) {
return
}
func getEmbeddedBlock(embedBlockID string, trees map[string]*parse.Tree, sqlBlock *sql.Block, headingMode int, breadcrumb bool) (block *Block, blockPaths []*BlockPath) {
func getEmbeddedBlock(trees map[string]*parse.Tree, sqlBlock *sql.Block, headingMode int, breadcrumb bool) (block *Block, blockPaths []*BlockPath) {
tree, _ := trees[sqlBlock.RootID]
if nil == tree {
tree, _ = loadTreeByBlockID(sqlBlock.RootID)