Skip to content

Commit c25fd01

Browse files
committed
add <picture></picture> and add test
1 parent 7e2ec39 commit c25fd01

File tree

3 files changed

+66
-33
lines changed

3 files changed

+66
-33
lines changed

dist/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -45312,11 +45312,12 @@ exports.HTMLtoMarkdown = (html) =>
4531245312
return reject(Err_DOMWrong);
4531345313

4531445314
// full image
45315-
let fullImage = $('.post-full-image > img') || '',
45315+
let fullImage = $('.post-full-image > picture > img') || '',
4531645316
fullImageURL;
4531745317
// Is there a full image
4531845318
if (fullImage) {
4531945319
fullImageURL = fullImage.attr('src');
45320+
4532045321
// Whether the src of the full image is empty
4532145322
if (!fullImageURL) return reject(Err_DOMWrong);
4532245323
else {

0 commit comments

Comments
 (0)