Skip to content

Commit

Permalink
feat: sf markdown图片模式 支持显示用户引用的图片
Browse files Browse the repository at this point in the history
  • Loading branch information
misaka20002 committed Dec 21, 2024
1 parent 1c61422 commit 7cf2c33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/SF_Painting.js
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,7 @@ export class SF_Painting extends plugin {

try {
if (useMarkdown) {
const img = await markdown_screenshot(e.user_id, e.self_id, msg, answer);
const img = await markdown_screenshot(e.user_id, e.self_id, e.img ? e.img.map(url => `<img src="${url}" width="256">`).join('\n') + "\n\n" + msg : msg, answer);
if (img) {
await e.reply({ ...img, origin: true }, true)
} else {
Expand Down

0 comments on commit 7cf2c33

Please sign in to comment.