support for md

just added minimal md support using markdownjs. also _preview.html is trying to access file and variable which are not present. ex: script_foot.js