A port of Docdown v1.0 to Node.js