Wordpress to Jekyll Converter
I’m going through the process of converting all my WordPress sites to Jekyll. Jekyll makes it easy to convert by providing import scripts from various platforms including Wordpress.
All I had to do was Export the xml file from the Wordpress admin panel, then run the Wordpress importer.
That’s great except the resulting files are HTML files, not markdown. And the text is not hard wrapped, which is fine if you’re using a program with soft wraps, but I don’t like my IDE softwrapping, so I want to insert hard breaks at a certain column width.
To fix the problems, I created a throwaway script. Drop this into the the root of your Jekyll site, then run it from the command line.