mirror of
https://github.com/fengxxc/wechatmp2markdown.git
synced 2026-03-03 19:20:51 +08:00
fix: 修复图片地址获取不到的bug
This commit is contained in:
@@ -25,7 +25,7 @@ func parseSection(s *goquery.Selection) Paragraph {
|
||||
attr["href"], _ = s.Attr("href")
|
||||
p = Piece{LINK, removeBrAndBlank(s.Text()), attr}
|
||||
} else if s.Is("img") {
|
||||
attr["src"], _ = s.Attr("src")
|
||||
attr["src"], _ = s.Attr("data-src")
|
||||
attr["alt"], _ = s.Attr("alt")
|
||||
attr["title"], _ = s.Attr("title")
|
||||
p = Piece{IMAGE, "", attr}
|
||||
|
||||
Reference in New Issue
Block a user