/wp2middleman

Migrate the posts in a Wordpress XML export file to Middleman-style markdown down files.

Primary LanguageRubyMIT LicenseMIT

Build Status

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
---

<p>The post content in HTML or text, depending on how it was saved to Wordpress.</p>
<ul>
<li>list item</li>
<li>another list item</li>
</ul>

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