Skip to content

Commit

Permalink
🎨 Improve HTML clipping siyuan-note/siyuan#13342
Browse files Browse the repository at this point in the history
  • Loading branch information
88250 committed Dec 4, 2024
1 parent 3c5994e commit 6b7ec82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions content.js
Original file line number Diff line number Diff line change
Expand Up @@ -348,6 +348,11 @@ const siyuanSendUpload = async (tempElement, tabId, srcUrl, type, article, href)
return
}

if (item.className.includes("emoji") && "" !== item.getAttribute("alt")) {
// 图片 Emoji 直接使用 alt https://github.com/siyuan-note/siyuan/issues/13342
return
}

// 处理使用 data-original 属性的情况 https://github.com/siyuan-note/siyuan/issues/11826
let dataOriginal = item.getAttribute('data-original')
if (dataOriginal) {
Expand Down
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,5 +37,5 @@
"name": "SiYuan",
"options_page": "options.html",
"description": "Web clipping for SiYuan. 思源笔记网页剪藏。",
"version": "1.7.0"
"version": "1.7.1"
}

0 comments on commit 6b7ec82

Please sign in to comment.