Wordpress to markdown
Recently, I moved away from Wordpress. I did it primarily because Wordpress is so much more than just a blogging platform and what I needed was just a simple way of publishing posts with embedded code, links and images. Moreover, writing blogs using Wordpress's web editor is less than ideal…
The biggest problem to solve when moving away from Wordpress is how to not lose all your posts. Luckily, Wordpress allows you to export all your stuff in XML, but you also need a way to import them in whatever other blogging platform you are going to use.
After some research, I decided to choose a static site generator. Out of all the available alternatives, I picked Felix Felicis (aka "liquidluck"): it's written in Python, very simple to customize and extend, and with some pleasing themes. Other solutions, like jekyll, public-static, etc. are way too "powerful" (read "complicated") for my taste.
Unfortunately, unlike other more popular alternatives, Felix Felicis does not come with an "importer" of Wordpress's XML file. So, I decided to fork one of the existing solutions and adapt it to my needs.
If you want to do like me, migrate away from Wordpress and use Felix Felicis as your static site generator, do the following:
- Export your posts from Wordpress in an XML file
git clonemy fork of
wp2mdand run it over the XML file
- Manually check that all your links and posts have been properly exported: mine needed almost zero editing!