Merge pull request #3 from WillKoehrsen/master
Fixed tag referring to article
This commit is contained in:
commit
cd3dd4f180
|
|
@ -18,7 +18,7 @@ function convertFromUrl(url) {
|
|||
return reject(err);
|
||||
|
||||
let $ = cheerio.load(body);
|
||||
let html = $('.postArticle-content').html() || '';
|
||||
let html = $('article').html() || '';
|
||||
let markdown = toMarkdown(html, { gfm: true, converters: converters });
|
||||
|
||||
resolve(markdown);
|
||||
|
|
|
|||
Loading…
Reference in New Issue