I made a throwaway project today with ChatGPT, and it works.

What kind of project exactly? A WXR (WordPress Extended RSS) to Markdown converter.

How does it work?

After you export your WordPress pages and posts to an XML file, which is what WXR uses, you can upload the file to the converter.

The converter will do the job client-side:

  • Read the XML
  • Detect patterns that WordPress uses on the XML, e.g wp-paragraph
  • Detect tables
  • Detect categories
  • Then convert it to Markdown
  • Zip them (uses no external Node.js modules, just pure JS)

This tool is pretty useful for people who are going to switch from WordPress to a SSG or a flat-file CMS that needs a converted Markdown file, then paste it to their contents.

What lang is it made?

Pure HTML, CSS and JS.

This tool is now available on:

https://wxr-to-md.italiatroller.dpdns.org/

Source code:

https://git.italiatroller.dpdns.org/italiatroller/WXR-to-MD