process mark down in gen.js instead of in app