🐛 The images in the embed blocks are not uploaded to the community hosting https://github.com/siyuan-note/siyuan/issues/10042

This commit is contained in:
Daniel 2024-01-01 17:08:04 +08:00
parent 275714f017
commit d71f488880
No known key found for this signature in database
GPG key ID: 86211BA83DF03017

View file

@ -1064,7 +1064,7 @@ func assetsLinkDestsInQueryEmbedNodes(tree *parse.Tree) (ret []string) {
return ast.WalkContinue
}
stmt := n.ChildByType(ast.NodeBlockQueryEmbedScript).TokensStr()
stmt := n.TokensStr()
stmt = html.UnescapeString(stmt)
stmt = strings.ReplaceAll(stmt, editor.IALValEscNewLine, "\n")
sqlBlocks := sql.SelectBlocksRawStmt(stmt, 1, Conf.Search.Limit)