bugfix: incorrect resuming of input stream for MdParser (revealed in Node.JS v0.10.30 with https://github.com/joyent/node/commit/4128d4d2ba8f346cab2b062f57ae4cb4831e7bb5)
code style improvements