markdown-impress is a tool to convert markdown to impress page.
$ npm install -g markdown-impress
-----
to separate each slide<!-- x=0 y=0 rotate=0 -->
var fs = require('fs');
var mtoi = require('markdown-impress');
var content = mtoi('file.md');
fs.writeFileSync('file.html', content);