Node.js - wp2md
Dump your WordPress blog into a static blog with Markdown.
Why?
I don't want to use WordPress for blogging anymore. I want to use Markdown so that I can control the look, feel, and templates of my blogs.
Installation
npm install wp2md
Example
NOTE: You must have pandoc
binary installed: http://code.google.com/p/pandoc/downloads/list
API
constructor
cleanCode: Wordpress uses goofy [sourcode]
blocks. If you want these converted to Github Flavored Markdown code blocks, then set this to true.
addParas: Wordpress doesn't always enclose paragraphs with <p>
html elements. The resulting Markdown may looked squished. Set this to true to fix this.
limit: The number of simultaneous HTTP requests to allow.
article
Has a callback with a article
object and next
function. next()
controls the rate at which requests happen. You must call next()
when finished with your article
data.
Properties of article
: title
, slug
, content
, author
, tags
, categories
, comments
.
License
(MIT License)
Copyright 2012, JP Richardson jprichardson@gmail.com