generate markdown file