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