🐛 清理未引用资源时未忽略 custom-data-assets 属性定义的资源文件 Fix https://github.com/siyuan-note/siyuan/issues/4122

This commit is contained in:
Liang Ding 2022-06-14 15:06:41 +08:00
parent 14f8ba10a9
commit 02b0c553e3
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 6 additions and 2 deletions

View file

@ -578,7 +578,7 @@ func buildSpanFromNode(n *ast.Node, tree *parse.Tree, rootID, boxID, p string) (
var src []byte
for _, attr := range nodes[0].Attr {
if "src" == attr.Key || "data-assets" == attr.Key {
if "src" == attr.Key || "data-assets" == attr.Key || "custom-data-assets" == attr.Key {
src = gulu.Str.ToBytes(attr.Val)
break
}