You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
node index.js
Starting wizard...
? Path to WordPress export file? /home/ligi/Downloads/wp_export.xml
? Path to output folder? output
? Create year folders? Yes
? Create month folders? No
? Create a folder for each post? Yes
? Prefix post folders/files with date? No
? Save images attached to posts? Yes
? Save images scraped from post body content? Yes
? Include custom post types and pages? No
Parsing...
Something went wrong, execution halted early.
TypeError: Cannot read properties of undefined (reading 'parentNode')
at isHeadingRow (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.cjs.js:100:23)
at Object.filter (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown-plugin-gfm/lib/turndown-plugin-gfm.cjs.js:77:41)
at filterValue (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:416:16)
at findRule (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:404:9)
at Rules.forNode (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:389:17)
at TurndownService.replacementForNode (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:898:25)
at /home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:863:40
at NodeList.reduce (<anonymous>)
at TurndownService.process (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:856:17)
at TurndownService.replacementForNode (/home/ligi/git/3rd/wordpress-export-to-markdown/node_modules/turndown/lib/turndown.cjs.js:899:25)
The text was updated successfully, but these errors were encountered:
It turns out, in my case, it was a html table in one of my posts that was not properly closed, and was making the html parser library (turndown) to choke. Fixing the missing tag in my XML fixed the problem.
Check the tables in your xml, and see if there are any ones that are unclosed, that might be it.
tried an export - got this:
The text was updated successfully, but these errors were encountered: