We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7158229 commit dca3734Copy full SHA for dca3734
1 file changed
src/converters.ts
@@ -39,7 +39,8 @@ function cleanUrl(urlString: string): string {
39
*/
40
function extractMainHtml(html: string): string {
41
try {
42
- const { JSDOM } = require("jsdom");
+ const jsdomModule = require("jsdom");
43
+ const { JSDOM } = jsdomModule.default || jsdomModule;
44
const dom = new JSDOM(html);
45
const doc = dom.window.document;
46
0 commit comments