[![Build Status](https://travis-ci.org/mdb/wp2middleman.png?branch=master)](https://travis-ci.org/mdb/wp2middleman) # wp2middleman Migrate the posts contained in a Wordpress XML export file to Middleman-style markdown files. ## Installation ``` git clone http://github.com/mdb/wp2middleman cd wp2middleman bundle install rake install ``` ## Commandline Usage ``` wp2mm some_wordpress_export.xml ``` Results in YYYY-MM-DD-Some-Title.html.markdown, formatted as such: ``` --- title: 'Some Title' date: YYYY-MM-DD tags: foo, bar ---

The post content in HTML or text, depending on how it was saved to Wordpress.

``` ### Optional parameters ``` wp2mm some_wordpress_export.xml --body_to_markdown true ``` Results in YYYY-MM-DD-Some-Title.html.markdown, formatted as such: ``` --- title: 'Some Title' date: YYYY-MM-DD tags: foo, bar --- The post content in markdown or text, depending on how it was saved to Wordpress. * list item * another list item ```